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:
Gökay Şatır 2024-01-03 16:00:39 +03:00 committed by Gökay ŞATIR
parent 8c6e2ecbdc
commit 147275ddbd

View file

@ -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 () {