do not scroll if detached. fixes #8.
This commit is contained in:
parent
8460e1c8a0
commit
2953a469da
|
@ -3690,6 +3690,8 @@ ScrollableBox.prototype.getScroll = function() {
|
|||
ScrollableBox.prototype.scroll = function(offset, always) {
|
||||
if (!this.scrollable) return;
|
||||
|
||||
if (this.detached) return;
|
||||
|
||||
// Handle scrolling.
|
||||
var visible = this.height - this.iheight
|
||||
, base = this.childBase
|
||||
|
|
Loading…
Reference in New Issue