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

Improved draggable regions #83

Merged

Conversation

ratatoeskr666
Copy link
Contributor

Only capture pointer when a certain threshold is exceeded
Only invoke window.move() once every 5ms to prevent performance issues

Only invoke window.move() once every 5ms to prevent performance issues
@ratatoeskr666
Copy link
Contributor Author

regarding issue #80

@ratatoeskr666
Copy link
Contributor Author

Please review and test first. I didn't know what to do with magic numbers and also I did not test the fixes. Also naming can be improved.

Copy link
Member

@shalithasuranga shalithasuranga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for the contribution 🎉. Regarding your comments, maybe we can pass those threshholds as options to setDraggableRegion?

@shalithasuranga shalithasuranga merged commit ddf07b3 into neutralinojs:main Aug 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants