Browse Source

Clear cached scroll offset on window scroll

This is to avoid a bug where the toolbar, highlighter, etc elements’ position 
would be off in editors positioned inside a scrollable window.
pull/534/head
Michal Tomaszewski 9 years ago
parent
commit
40f267fa0f
  1. 1
      src/canvas/view/CanvasView.js

1
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 || '';

Loading…
Cancel
Save