Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dragging on <svg> gives I-bar cursor #517

Open
aaronsnoswell opened this issue Feb 13, 2012 · 2 comments
Open

Dragging on <svg> gives I-bar cursor #517

aaronsnoswell opened this issue Feb 13, 2012 · 2 comments

Comments

@aaronsnoswell
Copy link

When dragging (click-drag-release) on an SVG element, webkit changes the cursor to an I-bar.

This is also documented below:

I can confirm this is a webkit-only bug, I've tested positive for the bug in Safari, Chrome and Chrome Canary. This bug does not happen in Firefox or Opera.

Example: Drag the mouse within the element here: http://raphaeljs.com/pie.html

I can confirm that none of the fixes listed at the first stackoverflow page work. Going to go submit a bug on the webkit project now, will link here when I have done so.

@aaronsnoswell
Copy link
Author

Looks to be resolved in the nightlies - not sure how to check when this behaviour will land in Chrome / Safari though...

@cameronjacobson
Copy link

It appears this behavior still exists in Chrome today. A way to get around this default behavior would be to assign the css "cursor" property from your code. I'm not 100% familiar with the convention you would use within raphael, but based on my experience with a project I'm currently working on, this method works just fine when dealing with raw svg / javascript.

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

No branches or pull requests

2 participants