mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
Refactor to delete mousewheel.js.
This old third party library added support for a "mousewheel" event to detect scrolling. However, it is not compatible with jQuery 3 and is obsolete now that there is a standard "wheel" event that accomplishes the same thing.
This commit is contained in:
@@ -691,7 +691,7 @@ exports.all = new exports.MessageList(
|
||||
// doing something. Be careful, though, if you try to capture
|
||||
// mousemove, then you will have to contend with the autoscroll
|
||||
// itself generating mousemove events.
|
||||
$(document).on('message_selected.zulip zuliphashchange.zulip mousewheel', function () {
|
||||
$(document).on('message_selected.zulip zuliphashchange.zulip wheel', function () {
|
||||
message_viewport.stop_auto_scrolling();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user