[Deck Swiper] Click to enlarge the image

Hi all, I followed this Youtube video and has got this far:

Objective: I want to click on the image, open in modal mode and enlarge the image.
Issue - here’s how to replicate the issue I’m facing

  • I have 5 images in total
  • No matter whether I swiped left (dislike) or right (like) on Image #5
  • Next showed Image #4
  • when i clicked on Image #4 and wanted to enlarge it, it still showed Image #5 after clicking it for the 1st time and 2nd time
  • Image #4 finally showed and enlargeed on the 3rd attempt

Any idea how to rectify this?