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

animated cursor #8

Open
DreadKnight opened this issue Mar 5, 2012 · 3 comments
Open

animated cursor #8

DreadKnight opened this issue Mar 5, 2012 · 3 comments
Labels
coding This issue requires some programming input Deals with hotkeys, interaction & accessibility visuals Various things that easily catch the eye
Milestone

Comments

@DreadKnight
Copy link
Member

DreadKnight commented Mar 5, 2012

We need to replace "/images/cursor/" with "/images/cursor.png", which is a sprite sheet with 5 frames, going from normal cursor to a hover state cursor, using js there should be a "smooth" animation between the two states, ping-pong style, up to 1 second length, meaning each frame should last 200ms.

Keep in mind the current offset of the cursor, as the finger is not placed in the top-left corner.

@ghost ghost assigned Cwiiis and calebj0seph Mar 5, 2012
calebj0seph added a commit that referenced this issue Mar 9, 2012
…l needs optimising and a clean-up, but works for now.
@calebj0seph
Copy link
Contributor

Added in b637512, needs a refactor though.

@DreadKnight
Copy link
Member Author

Firefox 14 added a new feature called "Pointer Lock API (primarily aimed at games developers)".
This provides the mouse coordinates, so it should improve performance of the animated cursor and avoid lag.
Maybe Chromium has something similar (or will get in the near future).

@DreadKnight
Copy link
Member Author

@turjuque's code refactoring introduces this as a regression, so it needs to be addressed again.

@DreadKnight DreadKnight reopened this Oct 17, 2012
@ghost ghost assigned Hypersomniac Apr 17, 2013
@DreadKnight DreadKnight added the input Deals with hotkeys, interaction & accessibility label Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coding This issue requires some programming input Deals with hotkeys, interaction & accessibility visuals Various things that easily catch the eye
Projects
None yet
Development

No branches or pull requests

4 participants