1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Reverse direction of tab scroll to expected direction

This commit is contained in:
Nick O'Leary 2023-02-20 17:30:16 +00:00
parent 43e4d09f72
commit dec3164fdd
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -183,7 +183,7 @@ RED.tabs = (function() {
// Assume this is wheel event which might not trigger
// the scroll event, so do things manually
var sl = scrollContainer.scrollLeft();
sl -= evt.originalEvent.deltaY;
sl += evt.originalEvent.deltaY;
scrollContainer.scrollLeft(sl);
}
})