You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 25, 2021. It is now read-only.
fix: listen for mousemove events (previously was not listening)
Fixes an issue where the TOOLTIP_DISPLAY_DELAY behavior (not showing the tooltip until the mouse had stopped moving for 100msec) was ineffective because no mousemove events were being received. This was because there was no mousemove event listener.
Test plan:
1. Before applying this fix, move your mouse quickly over a token without stopping for 100msec. (You can increase the TOOLTIP_DISPLAY_DELAY constant to make this easier.) Notice that the tooltip appears despite your mouse not ever being stopped for any period of 100msec.
2. Apply this fix. Now try the same. Notice that the tooltip does not appear until your mouse stops moving for 100msec.
* This test ensures that the adjustPosition options is being called in the ways we expect. This test is actually not the best way to ensure the feature
117
259
* works as expected. This is a good example of a bad side effect of how the main `hoverifier.ts` file is too tightly integrated with itself. Ideally, I'd be able to assert
0 commit comments