mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +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:
@@ -306,7 +306,7 @@ exports.activate = function (raw_operators, opts) {
|
||||
// Scroll so that the selected message is in the same
|
||||
// position in the viewport as it was prior to
|
||||
// narrowing
|
||||
viewport.set_message_offset(then_select_offset);
|
||||
message_viewport.set_message_offset(then_select_offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user