ericjgagnon / wickedpicker

A simple jQuery timepicker
http://ericjgagnon.github.io/wickedpicker/
MIT License
93 stars 78 forks source link

Exception if clicked on arrow, change event frozen #26

Open scorpio-angel opened 8 years ago

scorpio-angel commented 8 years ago

I found problem in event, when i click and release arrow button and move mouse out of button, time counter changed without stop action.

In function [handleTimeAdjustments] replace: }).bind('mouseup touchend', function () { clearInterval(timeOut); }); to: }).bind('mouseup touchend', function () { clearInterval(timeOut); }).bind('mouseout touchend', function () { clearInterval(timeOut); }); This fix it in my solution.