forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lightbox: Prevent panning image out of view.
This commit adds a method to detect whether the draggable element has moved out of view and if it has, move it back into view. The panzoom library does have a `bounds` option that is supposed to provide the functionality, but at the time of the commit it does not appear to work correctly. Upstream bug: anvaka/panzoom#112
- Loading branch information
Showing
1 changed file
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters