We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37f7e27 + 5a24646 commit bbac1acCopy full SHA for bbac1ac
touch/touch.view.ts
@@ -303,9 +303,9 @@ namespace $.$$ {
303
if( action_type === 'zoom' ) {
304
305
const zoom_prev = this.zoom() || 0.001
306
- const zoom_next = zoom_prev * ( 1 - .001 * Math.min( event.deltaY, 100 ) )
+ let zoom_next = zoom_prev * ( 1 - .001 * Math.min( event.deltaY, 100 ) )
307
+ zoom_next = this.zoom( zoom_next )
308
const mult = zoom_next / zoom_prev
- this.zoom( zoom_next )
309
310
const pan_prev = this.pan()
311
const center = this.pointer_center()!
0 commit comments