Skip to content

Performance improvements for pan & zoom#302

Merged
zakandrewking merged 15 commits into
masterfrom
testing-performance-mobile-pan-zoom
Jul 15, 2019
Merged

Performance improvements for pan & zoom#302
zakandrewking merged 15 commits into
masterfrom
testing-performance-mobile-pan-zoom

Conversation

@zakandrewking
Copy link
Copy Markdown
Owner

@zakandrewking zakandrewking commented May 7, 2019

These changes fix a performance issue with tooltips on objects. When many objects have mouseover event listeners, then pan/zoom performance suffers. Therefore, the tooltip behaviors were optimized so this performance hit only occurs when the tooltips are activated over objects, which is not the default setting.

This PR also implements requestAnimationFrame for more predictable performance with pan/zoom.

Also disabled the grabbing cursor which was causing slowdowns

@zakandrewking zakandrewking force-pushed the testing-performance-mobile-pan-zoom branch from 1a5cd46 to 7e317ab Compare July 12, 2019 15:34
@zakandrewking zakandrewking force-pushed the testing-performance-mobile-pan-zoom branch from 7e317ab to e23d1c4 Compare July 12, 2019 18:45
@zakandrewking zakandrewking force-pushed the testing-performance-mobile-pan-zoom branch from e23d1c4 to 1f2c40e Compare July 12, 2019 18:53
@zakandrewking zakandrewking changed the title Testing performance mobile pan zoom Performance improvements for pan & zoom Jul 15, 2019
@zakandrewking zakandrewking marked this pull request as ready for review July 15, 2019 20:50
@zakandrewking zakandrewking merged commit 521bbd3 into master Jul 15, 2019
@zakandrewking zakandrewking deleted the testing-performance-mobile-pan-zoom branch July 15, 2019 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant