mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Treat triple clicks in Vizia ParamSlider as click
This commit is contained in:
@@ -413,7 +413,12 @@ impl View for ParamSlider {
|
|||||||
});
|
});
|
||||||
|
|
||||||
event.map(|window_event, meta| match window_event {
|
event.map(|window_event, meta| match window_event {
|
||||||
WindowEvent::MouseDown(MouseButton::Left) => {
|
WindowEvent::MouseDown(MouseButton::Left)
|
||||||
|
// Vizia always captures the third mouse click as a triple click. Treating that triple
|
||||||
|
// click as a regular mouse button makes double click followed by another drag work as
|
||||||
|
// expected, instead of requiring a delay or an additional click. Double double click
|
||||||
|
// still won't work.
|
||||||
|
| WindowEvent::MouseTripleClick(MouseButton::Left) => {
|
||||||
if cx.modifiers.alt() {
|
if cx.modifiers.alt() {
|
||||||
// ALt+Click brings up a text entry dialog
|
// ALt+Click brings up a text entry dialog
|
||||||
self.text_input_active = true;
|
self.text_input_active = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user