mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
js: Rename viewport.js to message_viewport.js.
This fixes the mobile web experience for Chrome on iOS. Apparently, Chrome-on-iOS silently has a `viewport` module that overrides and user-defined module by that name, causing all of our code that accesses the viewport module to not work on that platform. We fix this by renaming it.
This commit is contained in:
@@ -670,7 +670,7 @@ exports.all = new exports.MessageList(
|
||||
// mousemove, then you will have to contend with the autoscroll
|
||||
// itself generating mousemove events.
|
||||
$(document).on('message_selected.zulip zuliphashchange.zulip mousewheel', function () {
|
||||
viewport.stop_auto_scrolling();
|
||||
message_viewport.stop_auto_scrolling();
|
||||
});
|
||||
|
||||
return exports;
|
||||
|
||||
Reference in New Issue
Block a user