encoder: jquery remains
This commit is contained in:
parent
836ddbfcfb
commit
2f61b05af1
1 changed files with 2 additions and 2 deletions
|
|
@ -176,9 +176,9 @@ module.exports = class Encoder extends _widgets_base {
|
|||
|
||||
this.wrapper.addEventListener('mousewheel', (e)=>{
|
||||
|
||||
if (e.originalEvent.wheelDeltaX || e.originalEvent.wheelDelta == 0) return
|
||||
if (e.wheelDeltaX || e.wheelDelta == 0) return
|
||||
|
||||
var direction = e.originalEvent.wheelDelta / Math.abs(e.originalEvent.wheelDelta)
|
||||
var direction = e.wheelDelta / Math.abs(e.wheelDelta)
|
||||
|
||||
this.display.setValue(this.display.value + direction)
|
||||
this.setValue(direction < 0 ? this.getProp('back') : this.getProp('forth'), {sync:true, send:true})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue