-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Drag{Pan,Rotate}Handler to use camera animation
Instead of updating the transform directly within the mousemove handler, we cede control to the render loop by doing our transform updates in the callback we pass to `Camera#_startAnimation`. This way, we synchronously update the transform, render the map, and fire the `move` event (and thus trigger any listeners that might perform DOM updates).
- Loading branch information
Anand Thakker
committed
Jan 19, 2018
1 parent
ba7be35
commit 0f4441b
Showing
4 changed files
with
107 additions
and
43 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