|
22 | 22 | show-floating-scroll-down-button?]
|
23 | 23 | (reset! focused? true)
|
24 | 24 | (rf/dispatch [:chat.ui/set-input-focused true])
|
25 |
| - (reanimated/animate height (reanimated/get-shared-value last-height)) |
26 |
| - (reanimated/set-shared-value saved-height (reanimated/get-shared-value last-height)) |
| 25 | + |
| 26 | + ;; removed by @clauxx |
| 27 | + ;; |
| 28 | + ;; (reanimated/animate height (reanimated/get-shared-value last-height)) |
| 29 | + ;; (reanimated/set-shared-value saved-height (reanimated/get-shared-value last-height)) |
| 30 | + ;; (reanimated/animate container-opacity 1) |
| 31 | + ;; (when (> (reanimated/get-shared-value last-height) (* constants/background-threshold |
| 32 | + ;; max-height)) |
| 33 | + ;; (reanimated/animate opacity 1) |
| 34 | + ;; (reanimated/set-shared-value background-y 0)) |
| 35 | + ;; ;; |
| 36 | + |
27 | 37 | (reanimated/animate container-opacity 1)
|
28 |
| - (when (> (reanimated/get-shared-value last-height) (* constants/background-threshold max-height)) |
| 38 | + (when (> (reanimated/get-shared-value last-height) |
| 39 | + (* constants/background-threshold max-height)) |
29 | 40 | (reanimated/animate opacity 1)
|
30 | 41 | (reanimated/set-shared-value background-y 0))
|
31 | 42 | (js/setTimeout #(reset! lock-selection? false) 300)
|
32 | 43 | (when (and (not-empty @text-value) @input-ref)
|
33 | 44 | (.setNativeProps ^js @input-ref
|
34 | 45 | (clj->js {:selection {:start @saved-cursor-position :end @saved-cursor-position}})))
|
35 |
| - (kb/handle-refocus-emoji-kb-ios props animations dimensions) |
| 46 | + ;;(kb/handle-refocus-emoji-kb-ios props animations dimensions) |
36 | 47 | (reset! show-floating-scroll-down-button? false))
|
37 | 48 |
|
38 | 49 | (defn blur
|
|
53 | 64 | link-previews?)]
|
54 | 65 | (reset! focused? false)
|
55 | 66 | (rf/dispatch [:chat.ui/set-input-focused false])
|
56 |
| - (reanimated/set-shared-value last-height reopen-height) |
57 |
| - (reanimated/animate height min-height) |
58 |
| - (reanimated/set-shared-value saved-height min-height) |
| 67 | + ;; removed by @clauxx |
| 68 | + ;; (reanimated/set-shared-value last-height reopen-height) |
| 69 | + ;; (reanimated/animate height min-height) |
| 70 | + ;; (reanimated/set-shared-value saved-height min-height) |
59 | 71 | (reanimated/animate opacity 0)
|
60 | 72 | (js/setTimeout #(reanimated/set-shared-value background-y (- window-height)) 300)
|
61 | 73 | (when (utils/empty-input? @text-value images link-previews? reply nil)
|
|
87 | 99 | max-height)
|
88 | 100 | bottom-content-height (utils/calc-bottom-content-height images link-previews?)
|
89 | 101 | new-height (min (+ new-height bottom-content-height) max-height)]
|
90 |
| - (reset! content-height content-size) |
91 |
| - (when (utils/update-height? content-size height max-height maximized?) |
92 |
| - (reanimated/animate height new-height) |
93 |
| - (reanimated/set-shared-value saved-height new-height)) |
94 |
| - (when (= new-height max-height) |
95 |
| - (reset! maximized? true) |
96 |
| - (rf/dispatch [:chat.ui/set-input-maximized true])) |
| 102 | + ;; removed by @clauxx |
| 103 | + ;; (reset! content-height content-size) |
| 104 | + ;; (when (utils/update-height? content-size height max-height maximized?) |
| 105 | + ;; (println "animnating inside content change: " new-height) |
| 106 | + ;; (reanimated/animate height new-height) |
| 107 | + ;; (reanimated/set-shared-value saved-height new-height)) |
| 108 | + ;; (when (= new-height max-height) |
| 109 | + ;; (reset! maximized? true) |
| 110 | + ;; (rf/dispatch [:chat.ui/set-input-maximized true])) |
97 | 111 | (if (utils/show-background? max-height new-height maximized?)
|
98 | 112 | (do
|
99 | 113 | (reanimated/set-shared-value background-y 0)
|
100 | 114 | (reanimated/animate opacity 1))
|
101 | 115 | (when (= (reanimated/get-shared-value opacity) 1)
|
102 | 116 | (reanimated/animate opacity 0)
|
103 | 117 | (js/setTimeout #(reanimated/set-shared-value background-y (- window-height)) 300)))
|
| 118 | + (println "inside content-size-change: " content-size) |
104 | 119 | (rf/dispatch [:chat.ui/set-input-content-height content-size])
|
105 | 120 | (reset! lock-layout? (> lines 2)))))
|
106 | 121 |
|
|
0 commit comments