Skip to content

Commit

Permalink
Core side handles the right click with mouse down event.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gokaysatir committed Jan 3, 2024
1 parent 8c6e2ec commit 147275d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/src/map/handler/Map.TouchGesture.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 147275d

Please sign in to comment.