Event shifter detects unwanted events when "event duration" is smaller than the sum of the shifts
This issue is related to this forum post.
Thanks @krys06 for pointing it.
In short, when the signed sum of the shifts (increasing - decreasing) is greater than the "duration" of the event, some unwanted events are detected.
This is due to the way the g function is computed inside the EventShifter class.