mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 932792 - Don't apply APZC untransforms to mouse input on scrollbars. r=mbrubeck
This commit is contained in:
parent
6eabf00b87
commit
14605808e6
@ -162,8 +162,17 @@ var TouchModule = {
|
||||
this._handleKeyDown(aEvent);
|
||||
break;
|
||||
case "MozMouseHittest":
|
||||
// Used by widget to hit test chrome vs content
|
||||
if (aEvent.target.ownerDocument == document) {
|
||||
// Used by widget to hit test chrome vs content. Make sure the XUl scrollbars
|
||||
// are counted as "chrome". Since the XUL scrollbars have sub-elements we walk
|
||||
// the parent chain to ensure we catch all of those as well.
|
||||
let onScrollbar = false;
|
||||
for (let node = aEvent.originalTarget; node instanceof XULElement; node = node.parentNode) {
|
||||
if (node.tagName == 'scrollbar') {
|
||||
onScrollbar = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (onScrollbar || aEvent.target.ownerDocument == document) {
|
||||
aEvent.preventDefault();
|
||||
}
|
||||
aEvent.stopPropagation();
|
||||
|
Loading…
Reference in New Issue
Block a user