Core side handles the right click with mouse down event.
It internally handles the mouseup. So we don't send it again. Without this change, context menus can't behave normal. Because mouse pointer is set to somewhere else with the mouse up event. Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I719565b1ce192045250f9217e971725d8cc1003b
This commit is contained in:
parent
8c6e2ecbdc
commit
147275ddbd
1 changed files with 1 additions and 1 deletions
|
@ -240,8 +240,8 @@ L.Map.TouchGesture = L.Handler.extend({
|
|||
};
|
||||
|
||||
var rightClick = function () {
|
||||
// We will only send "buttondown" event because core side fires "buttonup" event internally.
|
||||
docLayer._postMouseEvent('buttondown', mousePos.x, mousePos.y, 1, 4, 0);
|
||||
docLayer._postMouseEvent('buttonup', mousePos.x, mousePos.y, 1, 4, 0);
|
||||
};
|
||||
|
||||
var waitForSelectionMsg = function () {
|
||||
|
|
Loading…
Reference in a new issue