Skip to content

change animated from 200 to 500#1

Merged
devansharora18 merged 1 commit intodevansharora18:mainfrom
drchaney:fix/remove-snap-to-mouse-position
Jul 29, 2023
Merged

change animated from 200 to 500#1
devansharora18 merged 1 commit intodevansharora18:mainfrom
drchaney:fix/remove-snap-to-mouse-position

Conversation

@drchaney
Copy link
Copy Markdown

I noticed that the animation would "snap" at onMouseEnter despite onMouseMove attempting to prevent this from happening. The "animated" time is set for 200, and the transition is also set to "0.2s ease", yet the animation would still snap. This could be due to:

  • Multiple large image files
  • User hardware limitations
  • CSS & JavaScript timing not in sync

I experimented with different timeouts and found 500 to provide noticeably fewer "snaps" without creating a noticeable delay to the smooth scroll.

@devansharora18 devansharora18 merged commit 3aa4486 into devansharora18:main Jul 29, 2023
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