summaryrefslogtreecommitdiff
path: root/src/client/app
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2019-08-22 02:36:19 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-08-22 02:36:19 +0900
commitede854c2152f46a70d7c3a0290bb84384ab14e22 (patch)
treee68b561bf7d2f7b4dd65fa09398fb53dae33a5e2 /src/client/app
parentUpdate yarn.lock (#5327) (diff)
downloadsharkey-ede854c2152f46a70d7c3a0290bb84384ab14e22.tar.gz
sharkey-ede854c2152f46a70d7c3a0290bb84384ab14e22.tar.bz2
sharkey-ede854c2152f46a70d7c3a0290bb84384ab14e22.zip
Update button.vue (#5331)
Diffstat (limited to 'src/client/app')
-rw-r--r--src/client/app/common/views/components/ui/button.vue3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/app/common/views/components/ui/button.vue b/src/client/app/common/views/components/ui/button.vue
index 75acc48876..59a5c858a7 100644
--- a/src/client/app/common/views/components/ui/button.vue
+++ b/src/client/app/common/views/components/ui/button.vue
@@ -64,8 +64,7 @@ export default Vue.extend({
methods: {
onMousedown(e: MouseEvent) {
function distance(p, q) {
- const sqrt = Math.sqrt, pow = Math.pow;
- return sqrt(pow(p.x - q.x, 2) + pow(p.y - q.y, 2));
+ return Math.hypot(p.x - q.x, p.y - q.y);
}
function calcCircleScale(boxW, boxH, circleCenterX, circleCenterY) {