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

EffectGrid Click stolen on Windows only after loading an FX preset #4098

Closed
mkruselj opened this issue Mar 16, 2021 · 16 comments
Closed

EffectGrid Click stolen on Windows only after loading an FX preset #4098

mkruselj opened this issue Mar 16, 2021 · 16 comments
Labels
Bug Report Item submitted using the Bug Report template JUCE Ex Machina Issue that will likely be fixed by porting Surge to JUCE UI/plugin back-end UX Issues related to user experience (UX) - mouse, touch, keyboard, MIDI inputs, etc. Windows Windows related issues
Milestone

Comments

@mkruselj
Copy link
Collaborator

Hash 6da806f (but I've also noticed it way back).

Steps to reproduce:

  1. Open Surge
  2. Select an FX slot
  3. Load any FX preset
  4. Click any other FX slot that is not currently selected

Observed behavior: That other FX slot doesn't get selected

Expected behavior: It should get selected!

@mkruselj mkruselj added UX Issues related to user experience (UX) - mouse, touch, keyboard, MIDI inputs, etc. Bug Report Item submitted using the Bug Report template labels Mar 16, 2021
@mkruselj mkruselj added this to the 1.9.0 milestone Mar 16, 2021
@mkruselj mkruselj changed the title Click stolen when picking an FX preset Click stolen after loading an FX preset Mar 16, 2021
@baconpaul
Copy link
Collaborator

Stolen clicks are often someone returning kMouseEventHandled instead of kMouseEventHandledAndDontNeedDownEvents usually when a menu pops up. I would start by looking for that perhaps?

@mkruselj
Copy link
Collaborator Author

CSnapshotMenu seems to use kMouseDownEventHandledButDontNeedMovedOrUpEvents (really VSTGUI? REALLY?!) in its onMouseDown method...

@baconpaul
Copy link
Collaborator

If you flip it to the other one does it work?
And yeah right?

@mkruselj
Copy link
Collaborator Author

Flipping it around doesn't solve it sadly 🙁

@baconpaul
Copy link
Collaborator

Ok!
Thanks for checking. I can look before we ship for sure.

@baconpaul
Copy link
Collaborator

Oh the other thing is: I wonder if the menu callback handler is returning the wrong value.

So when yous elect an item it will call valueChanged on the listener I think. If that returns 0 it does this (remembering click stealing of yore). I don’t expect this cryptic comment to let you solve it @mkruselj but since it popped in my head want to write it down as a sort of message-in-a-bottle-to-my-future-self

@mkruselj
Copy link
Collaborator Author

Addendum: This stolen click thing also happens when changing skins. After skin is reloaded, I cannot move the plugin window (be it in DAW or in SAVIhost standalone) straight away. Need to click once somewhere else in order to be able to move it.

@baconpaul
Copy link
Collaborator

Sigh.
This is, of course, windows only.
We had a stolen mouse with the modulation source button forever ago right on windows? Wonder how I fixed that.

@baconpaul
Copy link
Collaborator

Ahh right it was #1465 and it was something else

@mkruselj
Copy link
Collaborator Author

Wiill check if the same thing happens in JUCE version. Bet it doesn't!

@mkruselj
Copy link
Collaborator Author

mkruselj commented Mar 17, 2021

Well, FX grid doesn't even work in XT build as it is currently. 🙂

(But the stolen click when changing skin then attempting to move the plugin window doesn't happen - so it's likely this wouldn't be a problem either, then!)

@mkruselj mkruselj added the JUCE Ex Machina Issue that will likely be fixed by porting Surge to JUCE UI/plugin back-end label Mar 17, 2021
@baconpaul
Copy link
Collaborator

baconpaul — Today at 4:51 PM
on this mouse stealing I see this on windows

  1. CHoose an FX and click play mode to mono - no steal
  2. Choose an FX and mouse over a slider - get hover gestures
  3. Choose an FX and mouse over the EFFECTS selector - no hover gesture
    so it seems that chosing an FX eats a mouse click but ONLY in the effect selector not elsewhere
    What you see also?
    EvilDragon — Today at 4:52 PM
    the report was only for FX grid anyways
    but yep lemme verify
    baconpaul — Today at 4:52 PM
    yeah but that means it is a bug in the fx grid not in the fx menu!
    EvilDragon — Today at 4:53 PM
    I do get a hover gesture in the grid
    but if I click it doesn't work
    baconpaul — Today at 4:53 PM
    right

@baconpaul baconpaul changed the title Click stolen after loading an FX preset EffectGrid Click stolen after loading an FX preset Mar 20, 2021
@baconpaul baconpaul changed the title EffectGrid Click stolen after loading an FX preset EffectGrid Click stolen on Windows only after loading an FX preset Mar 20, 2021
@baconpaul baconpaul added the Windows Windows related issues label Mar 20, 2021
@baconpaul
Copy link
Collaborator

Confirmed this does not break on mac or linux; and does not break with other controls.

@baconpaul
Copy link
Collaborator

So this is the case with either snapshot menu.

If the snapshot menu went from isa- to hasa- i bet this would work.

lemme ponder. that's a big change and one i kinda want to do in native juce. I may bounce this and ship with this little bug.

@baconpaul
Copy link
Collaborator

Pushing this to XT. Lets see if JUCE fixes it.

@baconpaul baconpaul modified the milestones: 1.9.0, Surge XT 1.0 Mar 24, 2021
@mkruselj
Copy link
Collaborator Author

mkruselj commented Apr 2, 2021

Of course JUCE fixes this just by virtue of existing. Tried it, now that you've fixed mouse clicks not working in FX grid. Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Item submitted using the Bug Report template JUCE Ex Machina Issue that will likely be fixed by porting Surge to JUCE UI/plugin back-end UX Issues related to user experience (UX) - mouse, touch, keyboard, MIDI inputs, etc. Windows Windows related issues
Projects
None yet
Development

No branches or pull requests

2 participants