pisi / Reel

The premier 360° solution for jQuery.
http://reel360.org
MIT License
690 stars 210 forks source link

Image Request Loop Issue #336

Open mindpixel-labs opened 4 years ago

mindpixel-labs commented 4 years ago

When running Reel 1.3.0 on jQuery 3.3.1 I noticed in the Chrome Inspector Network tab it has an infinite loop where it keeps making requests to the same image over and over again.

Here is the HTML <img src="assets/thumbmail.png" width="960" height="540" class="reel" data-image="assets/sprite.png" data-frames="21" data-footage="1" data-responsive="true" data-revolution="100">

In the Network tab, it will keep making requests to sprite.png over and over. Any idea what could be causing this issue? There are no errors reported in the console though.

Also when I view the DOM in the inspector, Reel keeps adjusting the DOM constantly as it keeps refreshing the container.

MDeeee commented 4 years ago

Same issue, any solution?

LedzZm commented 4 years ago

Any updates?

jiaoZhangZJ commented 7 months ago
  1. .bind >.on
  2. .trigger > var event = new $.Event(eventType, eventData); $(element).trigger(event,eventData); 3.!!! all $this.width(), $this.height() 》math.ceil($this.width()) ,math.ceil($this.height())
  3. setup: height= set(height, +t.attr(height) || math.ceil(t.height()) || opt.height),

    function globalTrigger(element, eventType, eventData) { // console.log('element, eventType, eventData',element, eventType, eventData) var event = new $.Event(eventType, eventData); $(element).trigger(event,eventData); if (!event.isPropagationStopped()) { element.parents().each(function() { if (event.isPropagationStopped()) { return false; } $(this).trigger(event,eventData); }); }

t.trigger( >> globalTrigger(t,