zubyj / leetcode-explained

Browser extension that adds video solutions, company tags, and GPT code analysis into Leetcode problems
https://leetcodeapp.com
MIT License
86 stars 13 forks source link

Dragging the leetcode resize bar delays the iframe pointer event by 1 second #16

Closed zubyj closed 1 year ago

zubyj commented 1 year ago

If you drag the bar in the center of a leetcode problem and dont hover the iframe. When you let it go, and try to play the video within 1 second it doesnt work.

The issue might be that when the mousedown event is triggered, the pointer-events style of the iframe element is set to none, which means that the iframe will not receive mouse events until it's set back to auto. This is causing a delay when you click on the iframe element after the mouseup event.