Repository navigation
Add passive scroll - #631
Conversation
|
@itsmichaeldiego this is the only place in this lib where it needs a passive event - so it should get rid of the warnings in the console and things should be a bit smoother (so yes its related to #625) Come to think of it, i might as well add this to the other 4 event listeners too: |
|
@jooj123 Sounds good, maybe we can create a new method call |
|
@itsmichaeldiego updated. Not sure how i can unit test this as its browser specific functionality |
|
@jooj123 That is fine man! Thanks for this! Could you provide something like a video or whatever so I can see this is working? I really want to merge this but I've no time to test it :( |
|
@jooj123 Bump! |
|
@itsmichaeldiego sorry havent had a chance to test this one - will do sometime over the weekend or next week It would be much easier if the internal demo worked in this repo :( |
|
@jooj123 What do you mean that the internal demo worked? We're working on new examples at https://github.com/google-map-react/google-map-react-examples |
This reverts commit 40c8f67.
* 'master' of github.com:google-map-react/google-map-react: Bump to 1.1.1 (GoogleMapReact#680) Revert "Added feature: update heat map on data change + fix linting" (GoogleMapReact#679) Bump version to 1.1.0 (GoogleMapReact#671) Added feature: update heat map on data change + fix linting (GoogleMapReact#593) Pass map instance to onDrag handler (GoogleMapReact#656) add math abs to avoid negative values when calculating zoom (GoogleMapReact#655) Bump version to 1.0.9 (GoogleMapReact#651) Custom div style options (GoogleMapReact#634) Bump version to 1.0.8 (GoogleMapReact#646) Revert 643 fix/map context (GoogleMapReact#645) Bump version to 1.0.7 (GoogleMapReact#644) Add passive scroll (GoogleMapReact#631) Use React 16 portal to render map overlay (GoogleMapReact#643) Fix old examples links and add one to new examples (GoogleMapReact#633) Bump version to 1.0.6 (GoogleMapReact#621) Add prop `onTilesLoaded` (GoogleMapReact#615) Fix typo, and call fromContainerPixelToLatLng() as you would expect. (GoogleMapReact#620) Update API.md (GoogleMapReact#611) Upgrade version to 1.0.5 (GoogleMapReact#607) Remove marker jiggle. (GoogleMapReact#603)
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Added passive scroll event (which is more performant).
See: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener (
passivein options)Needed the feature detection for browsers that dont support it
Note: hard to test this as the demos for
google-map-reactare all busted due to incorrect google maps key