mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 756003 - Check both overflow-x and overflow-y properties to see if an element is scrollable. r=mfinkle
This commit is contained in:
parent
5c5b5746b0
commit
c33b5c2b62
@ -2850,7 +2850,8 @@ var BrowserEventHandler = {
|
||||
var computedStyle = win.getComputedStyle(elem);
|
||||
if (!computedStyle)
|
||||
return false;
|
||||
return computedStyle.overflow == 'auto' || computedStyle.overflow == 'scroll';
|
||||
return computedStyle.overflowX == 'auto' || computedStyle.overflowX == 'scroll'
|
||||
|| computedStyle.overflowY == 'auto' || computedStyle.overflowY == 'scroll';
|
||||
},
|
||||
|
||||
_findScrollableElement: function(elem, checkElem) {
|
||||
|
Loading…
Reference in New Issue
Block a user