Skip to content

Commit

Permalink
chore: PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Conrad Chan committed Nov 1, 2019
1 parent 8bec687 commit b81f028
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions src/lib/viewers/image/ImageBaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ class ImageBaseViewer extends BaseViewer {
loadUI() {
this.controls = new Controls(this.containerEl);
this.zoomControls = new ZoomControls(this.controls);
this.zoomControls.init(this.scale, { onZoomIn: this.zoomIn, onZoomOut: this.zoomOut });
}

/**
Expand Down
2 changes: 0 additions & 2 deletions src/lib/viewers/image/ImageViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,6 @@ class ImageViewer extends ImageBaseViewer {
loadUI() {
super.loadUI();

this.zoomControls.init(this.scale, { onZoomIn: this.zoomIn, onZoomOut: this.zoomOut });

this.controls.add(__('rotate_left'), this.rotateLeft, 'bp-image-rotate-left-icon', ICON_ROTATE_LEFT);
this.controls.add(
__('enter_fullscreen'),
Expand Down
4 changes: 0 additions & 4 deletions src/lib/viewers/image/MultiImageViewer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import ImageBaseViewer from './ImageBaseViewer';
import PageControls from '../../PageControls';
import ZoomControls from '../../ZoomControls';
import { ICON_FULLSCREEN_IN, ICON_FULLSCREEN_OUT } from '../../icons/icons';
import { CLASS_INVISIBLE, CLASS_MULTI_IMAGE_PAGE, CLASS_IS_SCROLLABLE } from '../../constants';
import { pageNumberFromScroll } from '../../util';
Expand Down Expand Up @@ -261,9 +260,6 @@ class MultiImageViewer extends ImageBaseViewer {
loadUI() {
super.loadUI();

this.zoomControls = new ZoomControls(this.controls);
this.zoomControls.init(this.scale, { onZoomIn: this.zoomIn, onZoomOut: this.zoomOut });

this.pageControls = new PageControls(this.controls, this.wrapperEl);
this.bindPageControlListeners();
}
Expand Down

0 comments on commit b81f028

Please sign in to comment.