question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can’t find an event to handle zoom. The initialZoomInEnd is for when the lightbox appears. Is some event triggered when we zoom the image? Thanks

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
silverwindcommented, Oct 17, 2016

A zoom and a fullscreen event would indeed be much appreciated. Until then, I’m using

var target = document.querySelector(".pswp");
var hadClass = false;
(new MutationObserver(function(muts) {
  muts.some(function(mut) {
    if (mut.attributeName !== "class") return;
    var hasClass = Array.from(target.classList).includes("pswp--zoomed-in");
    if (hasClass && !hadClass) {
      console.log("zoomin");
      hadClass = true;
      return true;
    } else if (!hasClass && hadClass) {
      console.log("zoomout");
      hadClass = false;
      return true;
    }
  });
})).observe(target, {attributes: true});
3reactions
MatBdrycommented, Apr 13, 2016

it could be useful for me too 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Host hybrid and virtual events | Zoom
A comprehensive virtual event platform with the power to create hybrid and virtual event experiences attendees will love.
Read more >
Webinars and Events - Zoom
Webinars & Events. Join Zoom experts for a deep-dive into our products, features, industry trends and more. FEATURED WEBINAR.
Read more >
Zoom Event Services
Zoom Event Services plans, supports and produces high-quality virtual, live, and hybrid events on Zoom.
Read more >
Zoom Events Features
Zoom Events features are accessed through the Zoom Events platform. These support articles help you learn about features available to Attendees and Hosts, ......
Read more >
Creating a Zoom Event
How to create an event · Sign in to Zoom Events. · In the top-right corner, click Create. A Create Event pop-up window...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found