Browse Source
Merge pull request #534 from tomichal/fix-495 Fixes #495
Clear cached scroll offset on window scroll
pull/540/head
Artur Arseniev
9 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/canvas/view/CanvasView.js
|
|
|
@ -5,6 +5,7 @@ module.exports = Backbone.View.extend({ |
|
|
|
|
|
|
|
initialize(o) { |
|
|
|
_.bindAll(this, 'renderBody', 'onFrameScroll', 'clearOff'); |
|
|
|
window.onscroll = this.clearOff |
|
|
|
this.config = o.config || {}; |
|
|
|
this.em = this.config.em || {}; |
|
|
|
this.ppfx = this.config.pStylePrefix || ''; |
|
|
|
|