hooper icon indicating copy to clipboard operation
hooper copied to clipboard

Events not working properly

Open Kazuto opened this issue 4 years ago • 0 comments

Describe the bug

@beforeSlide

slideTo is always undefined

@afterSlide, @updated

don't fire at all

@slide

currentSlide is one-based as well as zero-based index, depending on slide direction - Slide to left: First slide is index 3, second slide is index 1, third slide is index 2 - Slide to right: First slide is index 0, second slide is index 1, third slide is index -1


To Reproduce Steps to reproduce the behavior:

  1. Install hooper ^0.3.4
  2. Create a carousel
  3. Console log the events
  4. See error

Expected behavior Events work like they're intended too

Screenshots @beforeSlide image

@slide image

Desktop:

  • OS: macOS
  • Browser Brave
  • Version 1.15.72 Chromium: 86.0.4240.75

Kazuto avatar Oct 10 '20 14:10 Kazuto