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:
parent
4f9136d2d5
commit
5021c4e9ca
4 changed files with 103 additions and 80 deletions
|
@ -54,6 +54,7 @@
|
|||
"file-loader": "^0.11.2",
|
||||
"font-awesome": "^4.7.0",
|
||||
"glob": "^7.1.1",
|
||||
"hammerjs": "^2.0.8",
|
||||
"http-link-header": "^0.8.0",
|
||||
"immutable": "^3.8.2",
|
||||
"imports-loader": "^0.8.0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue