mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Fix event coordinate check in ZenViewSplitter; use screenX and screenY instead of clickX and clientY
This commit is contained in:
2
l10n
2
l10n
Submodule l10n updated: 92e05a383d...b109ad0835
@@ -261,7 +261,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||
(fakeBrowserRect &&
|
||||
event.clientX > fakeBrowserRect.left &&
|
||||
event.clientX < fakeBrowserRect.left + fakeBrowserRect.width) ||
|
||||
(event.clickX === 0 && event.clientY === 0) // It's equivalent to 0 if the event has been dropped
|
||||
(event.screenX === 0 && event.screenY === 0) // It's equivalent to 0 if the event has been dropped
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user