uvarov-frontend / vanilla-calendar-pro

Vanilla Calendar is a versatile JavaScript date and time picker with TypeScript support, making it compatible with any JavaScript framework or library. It is designed to be lightweight, simple to use, and feature-rich without relying on external dependencies.
https://vanilla-calendar.pro
MIT License
445 stars 58 forks source link

Improved popup trigger on tap on Android/Chromium #287

Open pl-mnm opened 1 month ago

pl-mnm commented 1 month ago

Tapping a date with a popup on Android only displays the popup for the length of the tap. A longer press does seem keep the popup open. A quick tap on iOS keeps the popup open straight away. I haven't found any docs about these respective behaviours.

Is it at all possible to improve this, so that a quick tap on Android keeps the popup open? We are not making use of the date picking functionalities, in that case would it be possible to trigger the popup in JS?

uvarov-frontend commented 1 month ago

Hello, at the moment the popups function only works when hovering over the date, which is why clicking on the date causes the hover event, this is not correct for mobile devices, I will add an option with which you can call popups by clicking on the date, but so far there is no such option, you can write your own the function of creating and displaying a pop-up by clicking on a date.