-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
www.motorsport.com - Slider view is not functional #26156
Comments
OnePlus 6, Android 9 |
Thanks for the report, @tbruckschlegel Tested with: This is the web page displayed in Firefox Nightly: And this is the web page displayed in Chrome: |
This is working on RDM but not on the device. <iframe class="juxtapose" src="https://cdn.knightlab.com/libs/juxtapose/latest/embed/index.html?uid=05449168-3056-11e9-9dba-0edaf8f81e27" width="100%" height="535" frameborder="0"></iframe> and inside the slider <div class="jx-slider">
<div class="jx-handle " style="left: 32.88%;">
<div class="jx-arrow jx-left"></div>
<div class="jx-control">
<div
class="jx-controller"
tabindex="0"
role="slider"
aria-valuenow="50"
aria-valuemin="0"
aria-valuemax="100"
></div>
</div>
<div class="jx-arrow jx-right"></div>
</div>
<div class="jx-image jx-left " style="width: 32.88%;">
<img
src="https://cdn-0.motorsport.com/static/fmf/1877/MCL34-02.jpg"
alt=""
/>
<div class="jx-label" tabindex="0">McLaren MCL33</div>
</div>
<div class="jx-image jx-right " style="width: 67.12%;">
<img
src="https://cdn-0.motorsport.com/static/fmf/1876/MCL34-01.jpg"
alt=""
/>
<div class="jx-label" tabindex="0">McLaren MCL34</div>
</div>
<a href="http://juxtapose.knightlab.com" target="_blank" class="jx-knightlab">
<div class="knightlab-logo"></div>
<span class="juxtapose-name">JuxtaposeJS</span>
</a>
</div> This is using the same technology than in #15381 and #14134 When loading the The version used is
|
When touching the screen on the non-iframed version, it starts with a touchstart event. this.slider.addEventListener("touchstart", function(e) {
e = e || window.event;
e.preventDefault();
e.stopPropagation();
self.updateSlider(e, true);
this.addEventListener("touchmove", function(e) {
e = e || window.event;
e.preventDefault();
e.stopPropagation();
self.updateSlider(event, false);
});
}); on the iframe version this is working too. There is a touchstart event. and it goes through BUT it doesn't seem to go through the touchmove event like it was not fired at all.
but why this is happening only when inserted in the iframe. I need help here. Would that be in your area @smaug---- ? |
@karlcow, this is basically caused by them checking If they (or the juxtapose library) wish, they can change their code as well to something like this:
In addition, they're also accidentally reading
Which breaks the UX on non-nightly builds of Firefox. I'll leave it up to you if we ought to just close this as a dupe of the Bugzilla bug or do some outreach as well. |
( |
No, it's fine. I just tested whether window.event was the culprit by toggling the preference in nightly, and clearly crossed wires as to what has and hasn't shipped related to window.event :) |
just for the paper trail, I filed a bug on their project when diagnosing #15381. |
URL: https://www.motorsport.com/f1/news/formula-one-mclaren-new-car-slide-view/4337668/?utm_source=RSS&utm_medium=referral&utm_campaign=RSS-F1&utm_term=News&utm_content=www
Browser / Version: Firefox Mobile 67.0
Operating System: Android
Tested Another Browser: Yes
Problem type: Site is not usable
Description: slider view is not working/slider is not movable
Steps to Reproduce:
Browser Configuration
Console Messages:
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: