mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #4064 from node-red/reverse-tab-scroll
Reverse direction of tab scroll to expected direction
This commit is contained in:
commit
d8dbe68425
@ -183,7 +183,7 @@ RED.tabs = (function() {
|
|||||||
// Assume this is wheel event which might not trigger
|
// Assume this is wheel event which might not trigger
|
||||||
// the scroll event, so do things manually
|
// the scroll event, so do things manually
|
||||||
var sl = scrollContainer.scrollLeft();
|
var sl = scrollContainer.scrollLeft();
|
||||||
sl -= evt.originalEvent.deltaY;
|
sl += evt.originalEvent.deltaY;
|
||||||
scrollContainer.scrollLeft(sl);
|
scrollContainer.scrollLeft(sl);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user