xdan / datetimepicker

jQuery Plugin Date and Time Picker
https://xdsoft.net/jqplugins/datetimepicker/
MIT License
3.5k stars 1.51k forks source link

Time is not selectable using mobile #539

Open FoxMiner opened 7 years ago

FoxMiner commented 7 years ago

Time is not selectable using mobile The date if it works but the time is not possible to select on mobile devices, tablet ..

FilipeBorges1993 commented 7 years ago

Same problem :( Data works fine, but time is not selectable...

Dimigergo commented 7 years ago

Same problem.

NinkevdVeen commented 7 years ago

This continues to be a problem. Has anyone found a solution to this?

NinkevdVeen commented 7 years ago

This issue seems to be exactly the same as issue #494 and perhaps even to do with pull request #110 . I have not yet tested either.

koen-vissers commented 4 years ago

Same issue here

erniukas86 commented 4 years ago

Hello, the Issue is that some Android devices, using this library, treats touch as touchmove or vice versa. I use touchstart and touchend event to determine how much touch was moved (by how many pixels) and depending on that, turning off scrolling if the move was lower than 3 px :) code:

           var pbTouchStart;
            timebox
                .on('touchstart', 'div', function (event) {
                    pbTouchStart = event.originalEvent.touches[0].clientY;
                })
                .on('touchend', 'div', function (event) {
                    var diff = event.originalEvent.changedTouches[0].clientY - pbTouchStart;
                    if (diff > -3 && diff < 3) {
                        currentlyScrollingTimeDiv = false;
                    }
                })