Add double-tap zoom functionary to ZoomableImage (#6944)

add <div.zoomable-image__margin/> to keep margin of the image on zooming
move setting `scrollLeft` and `scrollTop` of container from callback of
`setState` to `componentDidUpdate`
add 'hammerjs' package for touch gesture detection
rewrite `ZoomableImage` using 'hammerjs'
This commit is contained in:
Yuto Tokunaga authored and Eugen Rochko committed 2018-03-28 20:40:51 +02:00
1 parent 4f9136d2d5
commit 5021c4e9ca
4 files changed
+103 -80

No files matched your search

@@ -1459,9 +1459,6 @@
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
img {
max-width: $media-modal-media-max-width;