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

Implement touchscreen long press on sliders #5806

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

baconpaul
Copy link
Collaborator

  1. Add a LongHoldMixin
  2. Implement that on slider
  3. In touch mode, as a result, you end up with a long hold
    opening the RMB menu

Addresses #5802

@mkruselj mkruselj changed the title (XT 1.1) Implement TouchScreen LongPress on Sliders (XT 1.1) Implement touchscreen long press on sliders Jan 20, 2022
@mkruselj
Copy link
Collaborator

mkruselj commented Jan 21, 2022

Can be merged, but 2500 ms is too long for a right click. This is actually an adjustable setting on Windows but to get it we'd need to deal with registry, so meh. But reducing it to 750 ms would be nice, before merging.

Also the threshold for bailing on long press if a move happens should probably be like 4 px instead of 1.

At any rate will need more work down the road (context menus pop up in the wrong place).

@baconpaul baconpaul marked this pull request as draft January 22, 2022 13:18
@mkruselj mkruselj changed the title (XT 1.1) Implement touchscreen long press on sliders Implement touchscreen long press on sliders Jan 22, 2022
@surge-synthesizer surge-synthesizer deleted a comment from baconpaul Mar 4, 2022
@surge-synthesizer surge-synthesizer deleted a comment from baconpaul Mar 4, 2022
@mkruselj mkruselj marked this pull request as ready for review March 4, 2022 21:46
1. Add a LongHoldMixin
2. Implement that on slider
3. In touch mode, as a result, you end up with a long hold
   opening the RMB menu

Addresses surge-synthesizer#5802
@baconpaul baconpaul merged commit 715f679 into surge-synthesizer:main Mar 4, 2022
@baconpaul baconpaul deleted the longpress-5802 branch March 4, 2022 22:09
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