datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

Time is not selectable using mobile

Open FoxMiner opened this issue 8 years ago • 6 comments

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

FoxMiner avatar Dec 10 '16 12:12 FoxMiner

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

FilipeBorges1993 avatar Apr 27 '17 13:04 FilipeBorges1993

Same problem.

Dimigergo avatar Aug 16 '17 09:08 Dimigergo

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

NinkevdVeen avatar Sep 18 '17 09:09 NinkevdVeen

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.

NinkevdVeen avatar Sep 18 '17 11:09 NinkevdVeen

Same issue here

koen-vissers avatar Jan 15 '20 19:01 koen-vissers

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;
                    }
                })

erniukas86 avatar Jan 21 '20 11:01 erniukas86