6 Replies - 646 Views - Last Post: 18 October 2016 - 03:55 PM

#1 makamo66   User is offline

  • D.I.C Head

Reputation: -5
  • View blog
  • Posts: 104
  • Joined: 04-February 09

Modal not clickable on tablet

Posted 18 October 2016 - 07:14 AM

I have a modal on my web site and it doesn't work on a tablet. When I double-click the modal it justs zooms in and doesn't display the modal. How do I make my modal work on a tablet?
Is This A Good Question/Topic? 0
  • +

Replies To: Modal not clickable on tablet

#2 Dormilich   User is offline

  • 痛覚残留
  • member icon

Reputation: 4248
  • View blog
  • Posts: 13,465
  • Joined: 08-June 10

Re: Modal not clickable on tablet

Posted 18 October 2016 - 07:15 AM

what modal? why a double-click?
Was This Post Helpful? 0
  • +
  • -

#3 makamo66   User is offline

  • D.I.C Head

Reputation: -5
  • View blog
  • Posts: 104
  • Joined: 04-February 09

Re: Modal not clickable on tablet

Posted 18 October 2016 - 08:12 AM

When I single-click it doesn't work either. Is there some way to click on a tablet that will open the modal?
Was This Post Helpful? 0
  • +
  • -

#4 Dormilich   User is offline

  • 痛覚残留
  • member icon

Reputation: 4248
  • View blog
  • Posts: 13,465
  • Joined: 08-June 10

Re: Modal not clickable on tablet

Posted 18 October 2016 - 08:45 AM

again, what modal?
Was This Post Helpful? 0
  • +
  • -

#5 ArtificialSoldier   User is online

  • D.I.C Lover
  • member icon

Reputation: 2498
  • View blog
  • Posts: 7,560
  • Joined: 15-January 14

Re: Modal not clickable on tablet

Posted 18 October 2016 - 12:47 PM

Look at mobile browser touch events if you want to set up a specific touch event. Mobile devices do not have a double-click event, because like you've noticed that zooms instead. You can have the event handler run whatever code you want, including handling your modal box.
Was This Post Helpful? 0
  • +
  • -

#6 makamo66   User is offline

  • D.I.C Head

Reputation: -5
  • View blog
  • Posts: 104
  • Joined: 04-February 09

Re: Modal not clickable on tablet

Posted 18 October 2016 - 03:03 PM

http://plnkr.co/edit...bLXIZ?p=preview
Was This Post Helpful? 0
  • +
  • -

#7 ArtificialSoldier   User is online

  • D.I.C Lover
  • member icon

Reputation: 2498
  • View blog
  • Posts: 7,560
  • Joined: 15-January 14

Re: Modal not clickable on tablet

Posted 18 October 2016 - 03:55 PM

There's a description of some touch events in jQuery mobile here:

http://www.w3schools...vents_touch.asp

You can also check the jQuery mobile API documentation. There's also documentation at MDN:

https://developer.mo...PI/Touch_events
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1