Open souhail-chougrani opened 5 years ago
@ViewChild("gallery") gallery: NgxGalleryComponent;
@HostListener("mousewheel", ["$event"]) onMousewheel(event) {
if (event.wheelDelta > 0) {
this.gallery.preview.zoomIn();
} else {
this.gallery.preview.zoomOut();
}
}
For future explorers
@mcepo it work. thanks
there is a way to add mousewheel event for ZoomIN and ZoomOut