Skip to content

Conversation

snkashis
Copy link
Member

Objects with clickable == false should allow clicks to fall thru to objects beneath.

I'm not exactly sure how we want to handle this in regards to #1053, but this handles the case @DennisSchiefer presented in issue #1281.

Example test page included.

@mourner
Copy link
Member

mourner commented Feb 15, 2013

Was going to add this myself, but you were quicker, thanks! :) I think it handles the pointerEvents option correctly — if we want to set it explicitly even with clickable set to false, it will use that and that's fine.

mourner added a commit that referenced this pull request Feb 15, 2013
Allow clicks to pass thru non clickable paths
@mourner mourner merged commit 703f8a3 into Leaflet:master Feb 15, 2013
@jerroydmoore
Copy link

It appears this does not work for IE10

http://stackoverflow.com/questions/17441810/pointer-events-none-dosnt-work-in-ie-9-and-ie10

I have a Lmarker, with a L.divIcon on top of a L.rectangle, and the clicks are not passing through to the L.rectangle

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.

3 participants