I am having trouble with JScrollPane in WebKit browsers (including mobile). I suspect that this is a problem may actually be with the library rather than this module, but I'm using it here, so I thought I'd post this as a support request and see if there is any known solution.
Basically, when I scroll the pane, content does not redraw correctly and starts to look all wonky (as in the attached screenshot). Once I move my mouse over the messed up areas, it redraws correctly.
The twist is that this only occurs when I have a Vimeo embed on the page (as you can see at in the top of the screenshot). When I remove the embedded video using Firebug, suddenly the scrollpane divs work correctly, even without a page refresh (which seems to point to WebKit? I don't know).
Again, this only occurs in WebKit browsers, and I am not certain where the bug resides (jQuery? jScrollPane.js? This module? Media module? Vimeo iframe? Webkit?). Anyone have any ideas?
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| WebKit_rendering_error_screenshot.jpg | 76.49 KB | mark lacroix |
Comments
Comment #1
opdaviesI would suggest going to http://jscrollpane.kelvinluck.com and trying to replicate your error with any of those demos. If you can, then it's an issue with the jScrollPane library itself. If you can't, it may be an issue with this module or something Drupal-specific.
Please report back here with your findings.
Oliver
Comment #2
mark lacroix commentedI couldn't come up with any troubleshooting methods of my own, and that's a good idea, thank you!
I visited the demo pages and used Firebug to insert my embedded video (the same wrapper div that I deleted from my own page, which restored functionality). The demos on jscrollpane.kelvinluck.com still performed as expected.
I also tried to test by replacing the content in the scrollpanes on my page with simple text blocks, in case that was the reason for the problem (the thumbnails are not complex, but they are generated by a view). Again the problem persisted as long as the video was also embedded on the page.
So I suppose that means that it is specific to either a module on my site (either this one or the Media:Vimeo module) or something in my own site setup/theme code/etc, right?
Any thoughts on next steps?
Comment #3
mark lacroix commentedOkay. I've done some more experiments, and I've gotten more info, but it hasn't exactly helped me solve the problem:
I found that if I move the embedded video so that it is called after the scrollpane elements in the markup, then the problem goes away, but as long as the video is in the markup before the scrollpane elements, the problem remains.
I have four identically styled scrollpanes on the page, and so I tested putting the video between them in various combinations, nested at different places across the chain of divs. I found that the results were completely random. If I placed it after the first scrollpane but before the following three, the scrollpane immediately before and after the video (the first and second one) work fine, but the third and fourth ones remain borked. But this pattern did not hold when I placed the video in the same region but before the scrollpanes, or just before the last one. Again, results were more or less random, but repeatable.
The only thing I can think to do with this information is to just place the video after the scrollpanes in the markup and use CSS positioning to put them back to where I want them... Now, that will get me though the day, but it's a total hack and really not a sustainable solution for future content.
I really have no idea what to do.
Comment #4
mark lacroix commentedIt's been awhile, but I thought I'd update this issue with how I solved the problem for my site.
Not long after I posted my last message, I realized the obvious, that my render order issue didn't need to be solved in markup, duh! All I had to do was set a high z-index for the embedded video in CSS.
iframe{z-index:20;}was all it took. It's technically a hack, but one I've seen on other sites dealing with embedded videos (I wonder if they had similar redraw problems in WebKit), and there are no side-effects for my design (since I have no fixed toolbars or anything), so I'm calling this as good as it's going to get.I'm convinced that it's a WebKit problem and not an issue with the module or the library, so I'm going to close this issue so it doesn't cast stones upon the good name of this module ;-). If anyone else has more (or better) information, feel free to re-open it.