Skip to content

Commit

Permalink
fix(controls): changed camera controls to only work in 3d view
Browse files Browse the repository at this point in the history
 * solved annoying issues with camera rotation when editing code
  • Loading branch information
kaosat-dev committed Aug 10, 2017
1 parent 5f5ccf9 commit 22d9795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/viewer/jscad-viewer-lightgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ LightGLEngine.prototype = {
// we need mobile detection to change the target element of controls:
// otherwise we have to disable the build in html zoom on mobile , which is not always ideal
const isMobile = typeof window.orientation !== 'undefined'
const element = isMobile ? this.containerEl : document
const element = this.containerEl // for now only use the canvas isMobile ? this.containerEl : document
const baseInteractions = baseInteractionsFromEvents(element)
const gestures = pointerGestures(baseInteractions)

Expand Down

0 comments on commit 22d9795

Please sign in to comment.