summaryrefslogtreecommitdiff
path: root/src/client/app/common
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2019-08-22 02:40:19 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-08-22 02:40:19 +0900
commita39c1706a103a557c19e6701118def1c2c7385c7 (patch)
tree66c3380cd7c94ce5da56b1025bbaa6f5857f0872 /src/client/app/common
parent[Room] Add holo-display (diff)
parentUpdate button.vue (#5331) (diff)
downloadsharkey-a39c1706a103a557c19e6701118def1c2c7385c7.tar.gz
sharkey-a39c1706a103a557c19e6701118def1c2c7385c7.tar.bz2
sharkey-a39c1706a103a557c19e6701118def1c2c7385c7.zip
Merge branch 'develop' of https://github.com/syuilo/misskey into develop
Diffstat (limited to 'src/client/app/common')
-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) {