slider: use standard wheel event (& firefox compatible)
This commit is contained in:
parent
e83b7ce99d
commit
94fd7f2011
2 changed files with 5 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
var mod = (navigator.platform || '').match('Mac') ? 'metaKey' : 'ctrlKey'
|
||||
|
||||
document.addEventListener('mousewheel', function(event) {
|
||||
document.addEventListener('wheel', function(event) {
|
||||
if (event.ctrlKey) event.preventDefault()
|
||||
if (event[mod]) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue