fix clicking on things that aren't scrollboxes

This commit is contained in:
Benjamin Stover 2010-09-01 17:05:01 -07:00
parent e609aa26c3
commit a229b683c9

View File

@ -771,7 +771,7 @@ MouseModule.prototype = {
traversing until we find something more well-behaved, as we
prefer default behaviour to whiny scrollers. */ }
}
return [scrollbox, qinterface, (elem ? (elem.customDragger || this._defaultDragger) : null)];
return [scrollbox, qinterface, (scrollbox ? (scrollbox.customDragger || this._defaultDragger) : null)];
},
/**