Closed pablobirukov closed 8 years ago
@r00ger I think you talk about this part in end
method:
if (coords.offset[0] < Tap.options.fingerMaxOffset && coords.offset[1] < Tap.options.fingerMaxOffset && !utils.fireFakeEvent(e, Tap.options.eventName)) {
Or more friendly:
if (coords.offset[0] < Tap.options.fingerMaxOffset
&& coords.offset[1] < Tap.options.fingerMaxOffset
&& !utils.fireFakeEvent(e, Tap.options.eventName)) {
If we return before this we will not fire tap
event. You can share your case and I'll try to help.
@ezhlobo yes. I hacked the library in the same manner for test purposes. But now I would agree on current solution because bad code isn't a reason to make any exceptions in library. Thanks for attention.
For test purposes I need to trigger single touchend event in several cases. The library throws an error at
end
handler atcoords.offset[0]
Is it possible to ignore single touchendor it brakes common sense?
Thanks.