forked from i-like-robots/EasyZoom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i-like-robots#79 Optional delay between mouseenter and show
- Loading branch information
Steve Lindstrom
committed
Nov 12, 2015
1 parent
14079e0
commit c00ead7
Showing
3 changed files
with
32 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c00ead7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to write and share this @slindstr.
What's the use case or problem this is trying to solve? Adding a delay would make it seem unresponsive. Is this to try and best guess the user's intention whether or not to use the zoom?
c00ead7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay I completely missed your comment!
The use case I need it for is to make it a bit less jarring; I have a product page and it's common for someone to move their mouse over the product image to get to other information. Without the delay the zoom kicks in immediately and flips to the bigger image which isn't what the user was intending.
A similar example would be if you had a drop down navbar at the top of the page; if your mouse is above the navbar and you want to scroll down but hover over the nav bar, it'll expand and force you to move your mouse outside the dropdown, and then continue to scroll.