-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement zoom in/out and horizontal scrolling using WASD (for right …
…handed user) and IKJL (for left handed user). -- Added the mousemove event handler to capture x,y position on the canvas. -- The x,y position will determine the start from where the zoom should trigger. -- Recalculated the start and end position. -- Call the viewRange method with the new coordinates on the canvas. Note: I have tested this on chrome version (75.0.3770.100) and firefox (79.0 64 bit) Signed-off-by: Ankush Tyagi <ankush.tyagi@ericsson.com>
- Loading branch information
1 parent
35a4f32
commit d0e6597
Showing
4 changed files
with
112 additions
and
33 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
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
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
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