Added more compatibility through package.json
Added a method on the behavior to cancel the tap
on the current button.
With the isRepeatable
option activated, the previous flow allowed to disable the button in between repeats. The
button would be disabled but would keep on emitting the tap
event.
Changing within the way we care about imbricated buttons. The deepest will be taken.
Implemented a new method called tap
to trigger the tap cycle events.
The implementation of cancelling the tap event when moving has been revisited for better support of desktop browser.
The maxDeviation
wasn't good enough, now it will detect if the cursor/finger leave the button.
Also added cancellation when scrolling farther than the button size.
tapend
is getting called to cancel the tap action when mouse is leaving the button.
WuiDom was refactored and incorporates this fix. This made a lot more sense as all behaviors would need this. It didn't make sense to have to replicate this every time we created a new behavior. As such this version of wui-buttonBehavior requires WuiDom v0.4.0 and above.
First version