samjonesigd / vue-image-zoomer

Image zoom component for Vue.js
https://samueljon.es/vue-image-zoomer
MIT License
108 stars 10 forks source link

No hover default message #6

Closed mafrego closed 3 years ago

mafrego commented 3 years ago

Hi Sam,

is it possible not to have any message with the hover option? Neither a default nor a custom message? I'm asking because I tried to set an empty string with the "hover-message" property but the zoomer still displays the grey background. Put another way, is it possible not to have the grey background when the "hover-message" property is set to an empty string? Thanks

samjonesigd commented 3 years ago

@mafrego I can add a prop later today, but you could just do .vh--message{display:none;} in css

samjonesigd commented 3 years ago

Hi @mafrego

2 new props:

You can set these to false if you do not want the message to show. First one is for non-touch devices only, second for touch devices only.