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

[🐞] fadeDuration specified in area options is not honored for tooltips #418

Closed
techfg opened this issue Apr 10, 2024 · 0 comments · Fixed by #419
Closed

[🐞] fadeDuration specified in area options is not honored for tooltips #418

techfg opened this issue Apr 10, 2024 · 0 comments · Fixed by #419
Labels

Comments

@techfg
Copy link
Collaborator

techfg commented Apr 10, 2024

Describe the bug

When specifying an area specific fadeDuration, tooltip fade is using the default fadeDuration instead of the area specific one.

For example, in the following config, the duration for OH should be 500 but it's using 3000:

$('#myimg').mapster({
   fadeDuration: 3000,
   showToolTip: true,
   toolTip: 'Hello there',
   areas: [{
    key: 'OH',
    fadeDuration: 500
   }]
});

Reproduction

https://jsfiddle.net/techfg/jd8hnb37/2/

Steps to reproduce

  1. Go to repro link
  2. Hover over the drip to display the tooltip

Environment Info

All browsers, all OS

Expected Behavior

Expected Result:
Fade should be 500 milliseconds

Actual Result:
Fade is 3000 milliseconds

Additional Information

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant