]> cat aescling's git repositories - mastodon.git/commit
Add double-tap zoom functionary to `ZoomableImage` (#6944)
authorYuto Tokunaga <yuntan.sub1@gmail.com>
Wed, 28 Mar 2018 18:40:51 +0000 (03:40 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 28 Mar 2018 18:40:51 +0000 (20:40 +0200)
commit5021c4e9ca78881f5379a18185a46e580b8f2c34
treecea3a77e4ee99efc77cf2e3e8b68edf34df01fd3
parent4f9136d2d55e1547c84fc394c0e5e1bb259d58d2
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'
app/javascript/mastodon/features/ui/components/zoomable_image.js
app/javascript/styles/mastodon/components.scss
package.json
yarn.lock