0

首先要做的事情是:我没有两次包含模态插件,因为这是大多数类似问题的罪魁祸首 - 据我所知,这个问题只影响 BB10 - 所以显然情况并非如此。

正如我所说,在 BB10 中,模态打开然后立即消失。如果您稍微滚动页面,它会打开并保持打开状态,但这是间歇性的,仅适用于某些滚动点...

2个问题:

  1. 你知道问题是什么吗?
  2. 有没有办法通过 iOS 的 safari 来调试 BB10 浏览器,比如“检查元素”。

这是网站:http ://www.thomasdexter.me/intravilage/ 还有一些关于问题和滚动的视频:

https://dl.dropboxusercontent.com/u/13675289/Video%20(1).MOV https://dl.dropboxusercontent.com/u/13675289/Video.MOV

编辑:要获得弹出窗口,请单击固定菜单栏中的“登录”链接或立即在介绍幻灯片/页面上注册

4

1 回答 1

0

I've determined the underlying cause of the problem - it is a blackberry issue - and I've got a workaround that works but does not fix the blackberry issue that causes it.

I was able to deduce what's happening is that the blackberry is registering 2 touches instead of 1 for some reason. The first touch opened the popup and the second touch, if the button/touchpoint was in the same pixel area as either the 'close' button or the translucent black underlay that also closes on click, would register as a click on the button/underlay and close the popup right away. That is also why it was happening intermittently, if the button to open the popup was in the area of actual popup then it wouldn't close because the second click registers in a non 'closing' area.

TL;DR: It's a blackberry issue that they need to fix.

The solution was to disable the 'click to close backdrop' via 'data-backdrop="static"' only on blackberry.

I used the following in JS:

In the section where I check for supported stuff and add classes I have this:

  if(/BB10/i.test(navigator.userAgent)) {
    //BB10 Device
    $('html').addClass('bbten');
  }

Later on just before I register the click events to activate the modals, I have this to add the static (not click to closeable) backdrop if it's BB10 (3 different modals #contact, #signin and #signup):

  //bb10 double click issue
  $('html.bbten #contact, html.bbten #signin, html.bbten #signup').attr('data-backdrop','static');
于 2013-06-14T01:51:17.450 回答