mouse clicks are ignored sometimes...
Opened this issue · 0 comments
moebiussurfing commented
hey @genekogan , or some other users...
Any idea of why sometimes mouse clicks are not received to fill/erase the grid cells?
I am in macOS with a normal mouse. When used in a laptop trackpad it seems to work fine..(?)
I tried adding OF_EVENT_ORDER_BEFORE_APP to the listeners but do not helps:
void ofxSequencer::setMouseActive(bool active)
{
if (active)
{
ofAddListener(ofEvents().mousePressed, this, &ofxSequencer::mousePressed, OF_EVENT_ORDER_BEFORE_APP);
ofAddListener(ofEvents().mouseReleased, this, &ofxSequencer::mouseReleased, OF_EVENT_ORDER_BEFORE_APP);
ofAddListener(ofEvents().mouseDragged, this, &ofxSequencer::mouseDragged, OF_EVENT_ORDER_BEFORE_APP);
}
else
{
ofRemoveListener(ofEvents().mousePressed, this, &ofxSequencer::mousePressed, OF_EVENT_ORDER_BEFORE_APP);
ofRemoveListener(ofEvents().mouseReleased, this, &ofxSequencer::mouseReleased, OF_EVENT_ORDER_BEFORE_APP);
ofRemoveListener(ofEvents().mouseDragged, this, &ofxSequencer::mouseDragged, OF_EVENT_ORDER_BEFORE_APP);
}
}