Replies: 1 comment
|
Hi, Thanks for the feedback, we'll discuss with the team and get back to you. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Two issues with the PrimeVue 5 Gallery control--one bug and one potential enhancement. :-)
Bug: At present, the default mouse action for GalleryItems is zoomin/out. This is great for images but is Bad and Wrong if you're using GalleryItems for other things besides images (e.g. videos, PDFs, scaled CAD drawings, etc). One can disable this entirely by beating it to death with Vue (I'm presently using
<div @click.stop @pointerdown.stop @pointermove.stop @pointerup.stop @wheel.stop>inside the GalleryItems and forcing the cursor to show as pointer with an!importantCSS on the GalleryItem itself), but this is an inelegant hack.Suggested behaviour: be able to toggle zoomability on a per-item basis. Have a
zoomableprop on the GalleryItem itself, and/or if:normalScale == :zoomedScale, leave the pointer alone and pass all the events down to components. At present, if normalScale==zoomedScale, you get zoomin/zoomout mouse cursor behaviour that actually does nothing. If one is using<GalleryZoom*>, they should also honour the zoomability (or lack thereof) of the current GalleryItem.Enhancement: Why isn't there a (documented, at least) base component class for GalleryButtons that all the Gallery top buttons inherit from? I need to implement a few extra buttons (to wit: I'm a photographer, and need License and Add to Cart buttons that check a given image's state in a database; and would also love to build out a custom Download button that lets you choose which image size you want to download). It would be great to not have to do this from dead scratch.
All reactions