]> Repos - mime-chat/commitdiff
more improvments
authorAndrew Gundersen <gundersena@xavier.edu>
Wed, 17 Mar 2021 14:33:04 +0000 (09:33 -0500)
committerAndrew Gundersen <gundersena@xavier.edu>
Wed, 17 Mar 2021 14:33:04 +0000 (09:33 -0500)
src/components/inputItem/controllers/textCtrl.ts

index 0955096b6eb8d22d1e4bd1c99f868a08a3b3f5ca..115e9c582287a8f1f01eea3e891acd9c57057dda 100644 (file)
@@ -15,8 +15,8 @@ let side = "right"; // Side of parent we are on.
 let visible = false; // Whether textInput is visible.
 
 function showTextInput () {
-    let t1 = (side === "right") ? 50 : -70;
-    let t2 = (side === "right") ? 110 : -130;
+    const t1 = (side === "right") ? 50 : -70;
+    const t2 = (side === "right") ? 110 : -130;
 
     anime({
         targets: '#textInput',
@@ -31,7 +31,7 @@ function showTextInput () {
 }
 
 function hideTextInput() {
-    let t = (side === "right") ? 50 : -80;
+    const t = (side === "right") ? 50 : -80;
 
     anime({
         targets: '#textInput',
@@ -46,7 +46,7 @@ function hideTextInput() {
 }
 
 function switchSide(currentSide: string) {
-    let t = (currentSide === "right") ? -130 : 110;
+    const t = (currentSide === "right") ? -130 : 110;
 
     anime({
         targets: '#textInput',