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

The hitbox for the link is a square, not a triangle #32

Open
ChildishGiant opened this issue Sep 18, 2017 · 3 comments · May be fixed by #41
Open

The hitbox for the link is a square, not a triangle #32

ChildishGiant opened this issue Sep 18, 2017 · 3 comments · May be fixed by #41

Comments

@ChildishGiant
Copy link

image

image

@thatrobotdev
Copy link

I can confirm this with https://chingu-coders.github.io/owl-24/. I'm going to look in the code to see if I can do anything (might not be able to do anything, since I am pretty new with JS)

@thatrobotdev
Copy link

Ok I think I can pinpoint this issue down to this line of code:
<svg width="80" height="80"
This is definitely where the hitbox oversteps.

@NNTin
Copy link

NNTin commented Nov 17, 2017

https://nntin.github.io/discord-logo/

I've come up with a solution but it is not an elegant one. I applied the link to the path element that has the shape of a triangle. Disabled pointer events on the svg element and re-enabled pointer events on the triangle.

06.01.2018 - edit: https://jsfiddle.net/hgjrrt5k/

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 a pull request may close this issue.

3 participants