Juce button seems slow?


#1

it seems that the reaction speed of Juce button class is a little slow.

I wrote my own simple button with just a rounded rectangle being turned on and off by a mouseEvent click, and that is super snappy and reacts straight away,

but it seems when i use the Juce buttons, it’s a bit laggy and feels sluggish.

any ideas why? or even better, how to fix it?


#2

There’s no delay involved!

But like most buttons they trigger on mouse-up rather than down, is that it? You can change that with Button::setTriggeredOnMouseDown if you want to


#3

perfecto! thanks Jules!