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:
Cory Lynch
2017-07-02 19:53:36 -04:00
committed by showell
parent ca14292334
commit 802ea9abf5
6 changed files with 13 additions and 100 deletions

View File

@@ -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();
});