themustafaomar / jsvectormap

A lightweight JavaScript library for creating interactive maps and pretty data visualization.
https://jvm-docs.vercel.app
MIT License
398 stars 80 forks source link

Error when dragging in mobile #126

Closed sknick closed 1 year ago

sknick commented 1 year ago

When I attempt to drag (pan) the map in mobile, the following error is shown in the console and panning doesn't work:

jsvectormap.min.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'hide')
    at HTMLDivElement.h (jsvectormap.min.js:1:14459)

This appears to be a new issue in 1.5.2.

themustafaomar commented 1 year ago

Thanks for reporting this bug, please update to v1.5.3

sknick commented 1 year ago

I'm still getting the same error after upgrading. I'm using the mobile emulator in Chrome if it helps.

themustafaomar commented 1 year ago

Don't use the Chrome emulator, does it work on mobile devices?

sknick commented 1 year ago

Well, that's problematic since I develop and test via the emulators before deploying. Is there any reason it can't be made to work with the emulators?

themustafaomar commented 1 year ago

Please consider giving it a try in actual mobile devices, and if it's not working I'm ready to bring the issue back and fix it.