Skip to content

Conversation

inpursuit
Copy link

Allow the pointer-events attribute to be set on SVG shapes.
http://www.w3.org/TR/SVG/interact.html#PointerEventsProperty

@mourner
Copy link
Member

mourner commented Oct 10, 2012

Are there any use cases where you would want to set them to something other than "none"?

@mourner
Copy link
Member

mourner commented Oct 15, 2012

@inpursuit hey Adam, any thoughts? I'm just thinking if it would be better to just add this implicitly when clickable: false is set.

@inpursuit
Copy link
Author

The issue came up for me because I wanted the user to have to click the outline of filled shapes in order to interact with them so I had to set "pointer-events" to "visibleStroke". I probably could have just done it through CSS since I wanted this behavior for all shapes.

mourner added a commit that referenced this pull request Jan 31, 2013
Allow pointer-events to be set via options passed to shape
@mourner mourner merged commit 08f770f into Leaflet:master Jan 31, 2013
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.

2 participants