ice Posted October 7, 2020 Posted October 7, 2020 Hi, is it possible to tap day on a mobile device and an event will be fired. On Desktop does work - on mobile device does not work ?
Sherzod Posted October 7, 2020 Posted October 7, 2020 8 hours ago, ice said: is it possible to tap day on a mobile device and an event will be fired. On Desktop does work - on mobile device does not work ? Hi, Sorry for the late reply... I will try to check it again.
Sherzod Posted October 12, 2020 Posted October 12, 2020 2 hours ago, ice said: ? Hello, It seems by design: https://examples.sencha.com/extjs/7.0.0/examples/kitchensink/?modern#calendar-panel
Sherzod Posted October 12, 2020 Posted October 12, 2020 On 10/7/2020 at 11:36 AM, ice said: is it possible to tap day on a mobile device and an event will be fired. But you can try to do this using additional code, first of all for the month view I think.
ice Posted October 12, 2020 Author Posted October 12, 2020 The problem is, with mobile devices does not work, with desktop work's. How can try this using in additional code ?
Sherzod Posted October 12, 2020 Posted October 12, 2020 8 minutes ago, ice said: How can try this using in additional code ? Try this code, for month view: function afterCreate(sender) { var calendar = sender; calendar.element.on('tap', function(e, target, options) { var time = new Date(); ajaxRequest(calendar, 'rangeselect', [ 'sd=' + target.getAttribute('data-date').replace(/-/gi, '') + time.getHours() + time.getMinutes() + time.getSeconds(), 'ed=' + target.getAttribute('data-date').replace(/-/gi, '') + time.getHours() + time.getMinutes() + time.getSeconds() ]) }, calendar.element, { delegate: '.x-calendar-weeks-cell' }) }
ice Posted October 12, 2020 Author Posted October 12, 2020 Thanks, not work on a mobile device with Touch simulation (firefox or chrom) and not work on a iPhone.
Sherzod Posted October 12, 2020 Posted October 12, 2020 7 minutes ago, ice said: not work on a mobile device Works for me (Android, Chrome) 8 minutes ago, ice said: with Touch simulation What do you mean?
ice Posted October 12, 2020 Author Posted October 12, 2020 with firefox you can simulate mobile devices. there is a button where you can switch the simulation of touches on and off
Sherzod Posted October 12, 2020 Posted October 12, 2020 8 minutes ago, ice said: you can simulate mobile devices OK. But have you checked on a mobile device? Android, iPhone?
Sherzod Posted October 12, 2020 Posted October 12, 2020 4 minutes ago, ice said: yes on a iPhone - not work Sorry, I haven't tested on iPhone. Can you check on Android as well?
Sherzod Posted October 12, 2020 Posted October 12, 2020 11 minutes ago, ice said: Android - not work. Strange, works for me.
ice Posted October 13, 2020 Author Posted October 13, 2020 Hallo Sherzod, this morning i made a new testcase and now it work's ? Thank you and sorry 1
Recommended Posts