bumbu/svg-pan-zoom

Method for only disabling the click listener's preventDefault()

Open

#156 aperta il 13 ott 2015

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)JavaScript (383 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (1585 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Thank you for #123.

But having the new option affect all events goes a little far for my use case. Now if I set preventMouseEventsDefault: false, I scroll the screen when trying to pan via touch or zoom with the mousewheel.

Is there a way to prevent this?

Guida contributor