Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
This commit is contained in:
Aya Morisawa
2018-12-27 22:54:50 +09:00
parent 19f327701d
commit 6943c7d2d8
7 changed files with 49 additions and 26 deletions

View File

@@ -5,6 +5,8 @@ export default {
if (vn.context.$store.state.device.reduceMotion) return;
el.addEventListener('click', () => {
if (binding.value === false) return;
const rect = el.getBoundingClientRect();
const x = rect.left + (el.clientWidth / 2);