Browse Source

Up CanvasView

pull/5337/head
Artur Arseniev 3 years ago
parent
commit
ba50d88b79
  1. 4
      src/canvas/view/CanvasView.ts

4
src/canvas/view/CanvasView.ts

@ -86,8 +86,8 @@ export default class CanvasView extends ModuleView<Canvas> {
constructor(model: Canvas) {
super({ model });
bindAll(this, 'clearOff', 'onKeyPress', 'onWheel', 'onPointer');
const { em, pfx } = this;
this.className = `${pfx}canvas${!em.config.customUI ? ` ${pfx}canvas-bg` : ''}`;
const { em, pfx, ppfx } = this;
this.className = `${pfx}canvas ${ppfx}no-touch-actions${!em.config.customUI ? ` ${pfx}canvas-bg` : ''}`;
this.clsUnscale = `${pfx}unscale`;
this._initFrames();
this.listenTo(em, 'change:canvasOffset', this.clearOff);

Loading…
Cancel
Save