Closed Bug 975467 Opened 10 years ago Closed 8 years ago

bolido.com Web slideshow not transitioning properly

Categories

(Web Compatibility :: Site Reports, defect)

Other
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: o2733231, Unassigned)

References

()

Details

(Whiteboard: [country-all] [js] [contactready])

Attachments

(3 files)

User Agent: Mozilla/5.0 (Android; Mobile; rv:28.0) Gecko/28.0 Firefox/28.0 (Nightly/Aurora)
Build ID: 20140218120517

Steps to reproduce:

1-Go to this website:
http://www.bolido.com/2014/02/tesla-retrasa-produccion-del-suv-electrico-model-x-hasta-2015/

2-Click on the slideshow arrows


Actual results:

It moves several images at once or goes back to the beginning


Expected results:

Go to next or previous image
What device and firefox version are you using?
(In reply to Teodora Vermesan (:TeoVermesan) from comment #1)
> What device and firefox version are you using?

Samsung Galaxy S4 i9505, Firefox Beta for android 28.0
On Chrome and latest Nightly the behavior is that when tapping the arrows, it moves several images.
Please look at the following video: https://www.youtube.com/watch?v=ehdduah3k6U&feature=youtube_gdata_player
Is this happening to you? If so, it is expected.
If not, can anyone with a Samsung Galaxy S4 investigate this?
Flags: needinfo?(o2733231)
I mean the hidden keys over the picture itself, and the picture index top right. See attachments.
Flags: needinfo?(o2733231)
Chrome and firefox on slideshow transitions.
Bugzilla video viewer says it's corrupt but it's not, just download it.
Component: General → Mobile
Product: Firefox for Android → Tech Evangelism
Version: Firefox 28 → Trunk
another touch event prevent default issue?
Flags: needinfo?(miket)
Attached image galleria.png
@Hallvord, possible. I suspect something else is going haywire with the "-/17" current slide counter and slide positioning calculatoin. If you inspect the DOM and look at div.galleria-images, it's being constantly translate3d'd to ridiculous lengths (see attached image).
I confirm. Tested on Firefox Android on other pages with the slideshow.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [country-all] [js]
The click is handled by in all.min.js 
line 12004 and it's working quite well.

  c.Fastclick = function () {
    var a = /iP(ad|hone|od)/.test(navigator.userAgent),
    d = a && /OS 4_\d(_\d)?/.test(navigator.userAgent),
    f = a && /OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);
    return {

…
}

Interesting fact. The slideshow is working very well when in landscape mode. So yes probably something crazy about minimal width


The value is set in Line 12171:
f ? a.MozTransform = a.webkitTransform = 'translate3d(' + d.pos + 'px,0,0)' : a.left = d.pos + 'px'
Hmm ok. tried again and can't make it work in landscape mode anymore. So I guess it was a glitch of my breakpoints.
(In reply to Hallvord R. M. Steen from comment #8)
> another touch event prevent default issue?

Good intuition Hallvord. :) Looking closer at this, part of the fastclick code that Karl pointed out,

onTouchEnd: function(a) {
    var b;
    b = this.targetElement;
    if (!this.trackingClick) return !0;
    if (200 > a.timeStamp - this.lastClickTime) return this.cancelNextClick = !0;
    this.lastClickTime = a.timeStamp;
    this.trackingClick = !1;
    this.trackingClickStart = 0;
    f && (b = a.changedTouches[0], b = m.elementFromPoint(b.pageX - e.pageXOffset, b.pageY - e.pageYOffset));
    b.tagName.toLowerCase();
    a.preventDefault();
    this.sendClick(b, a);
    return !1;
},

If you commment out "this.sendClick(b, a);", only a single click event fires. As is, the slide is moving by two images.

I'm not able to reproduce the crazy infinite translate3d that I saw yesterday, though something else is still broken with the "-/17". However, that happens on Chrome mobile as well. IMO the real compat issues here is not canceling synethetic click events when calling e.preventDefault() from within a touchend event.
Depends on: 1016480
(In reply to Mike Taylor [:miketaylr] from comment #13)

> However,
> that happens on Chrome mobile as well. IMO the real compat issues here is
> not canceling synethetic click events when calling e.preventDefault() from
> within a touchend event.

Probably depends on screen dimensions. On the Galaxy S2 (480x800) you can see "-/17" but on the Galaxy S4 (1080x1920) it works as intended (see attached MP4).
(In reply to o2627091@rtrtr.com from comment #14)

> Probably depends on screen dimensions. On the Galaxy S2 (480x800) you can
> see "-/17" but on the Galaxy S4 (1080x1920) it works as intended (see
> attached MP4).

Talking about chrome for android here
Tested today. The issue is still here.
Bug 1016480 is still open.
Summary: Web slideshow not transitioning properly → bolido.com Web slideshow not transitioning properly
Whiteboard: [country-all] [js] → [country-all] [js] [contactready]
fixed
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Web Compatibility
Component: Mobile → Site Reports
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: