Remi05 / outlines

An app to help review your UI implementation.
MIT License
7 stars 0 forks source link

Mouse movement is slow while app is running #27

Closed Remi05 closed 3 years ago

Remi05 commented 3 years ago

When the app is running, moving the mouse becomes really slow, which is painful. This is probably due to our mouse hooks, we should see if lowering the workload on mouse move events helps. Otherwise we might need to find a better way to detect elements being hovered on.

Remi05 commented 3 years ago

Turns out this is caused by us updating the color picker every time the mouse is moved. We could lower the rate at which we update the color picker using a timer like we do for updating the target element.

Remi05 commented 3 years ago

Fixed with commit 8a93657eb90f0822dc6544dcb18dc96dbc80dc4d. Though it is not super clean, it would be great to find a better approach eventually.