Hi, I had a question about some custom ClickSelectingTool code…
class CustomClickSelectingTool extends ClickSelectingTool {
protected lastEvent;
standardMouseSelect() {
const currentEvent = this.diagram.lastInput;
if (this.lastEvent) {
// Compare it to currentEvent and take some special action
}
this.lastEvent = currentEvent;
return super.standardMouseSelect();
}
}
In the above, I’m tracking the last event in the following way and was wondering, is there a way to get at the last input event before the one represented by this.diagram.lastInput
?
Or, is tracking that myself the approach to take here?