flexanalytics / plugin-image-zoom

MIT License
67 stars 13 forks source link

Zoom doesn't work if image is already styled with `zoom: 50%` #10

Open sheng-di opened 2 years ago

sheng-di commented 2 years ago

In markdown files, if we already set some images' style to be zoom: 50%, this plugin resulsts in wrong position and size, and leaves user a blank screen。

case:

or in React: <img src="xxx" style={{ zoom: '50%' }} />

results: image

sheng-di commented 2 years ago

https://github.com/sheng-di/zooming/commit/57f72a8ae75df9d270055936542e1d722179853a I found another lib, and modified it to supoort zoom styles.

BooboNikita commented 1 year ago

sheng-di/zooming@57f72a8 I found another lib, and modified it to supoort zoom styles.

@sheng-di I make a plugin depending this your lib, but only effect in first page or after I refresh the current page. Do you have some resolutions?