From 6049c8a88e4c5daa3cba0f3e6e041a07563b2cbc Mon Sep 17 00:00:00 2001 From: harrietjia <30305708+harrietjia@users.noreply.github.com> Date: Wed, 5 Feb 2020 11:35:32 +0800 Subject: [PATCH] getPhoneEnv --- src/turn_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/turn_controller.js b/src/turn_controller.js index 03b2e47..2795bc0 100644 --- a/src/turn_controller.js +++ b/src/turn_controller.js @@ -493,7 +493,7 @@ export default { } const {width, height, viewIndex} = this; - if (this.fun.getPhoneEnv() == 3) { + if (getPhoneEnv() == 3) { x = e.clientX - (window.innerWidth - width) / 2; y = e.clientY - (window.innerHeight - height) / 2; } else { @@ -529,7 +529,7 @@ export default { let y = ""; if (this.isStart) { const {width, height} = this; - if (this.fun.getPhoneEnv() == 3) { + if (getPhoneEnv() == 3) { x = e.clientX - (window.innerWidth - width) / 2; y = e.clientY - (window.innerHeight - height) / 2; } else {