=> 32a222a361441d82800a10d7fd5caf148ddee6d1
[1mdiff --git a/src/android.c b/src/android.c[m [1mindex e23244ac..f934c4db 100644[m [1m--- a/src/android.c[m [1m+++ b/src/android.c[m [36m@@ -157,7 +157,7 @@[m [mvoid init_SystemTextInput(iSystemTextInput *d, iRect rect, int flags) {[m }[m [m void deinit_SystemTextInput(iSystemTextInput *d) {[m [31m- javaCommand_Android("input.deinit");[m [32m+[m[32m javaCommand_Android("input.deinit ptr:%p", d);[m deinit_String(&d->text);[m }[m [m [1mdiff --git a/src/ui/touch.c b/src/ui/touch.c[m [1mindex dacdbfef..6ebcac12 100644[m [1m--- a/src/ui/touch.c[m [1m+++ b/src/ui/touch.c[m [36m@@ -131,6 +131,9 @@[m [mstatic iTouchState *touchState_(void) {[m d->stepDurationMs = 1000.0 / (double) displayRefreshRate_iOS();[m #endif[m d->momFrictionPerStep = pow(0.985, 120.0 / (1000.0 / d->stepDurationMs));[m [32m+[m[32m#if defined (iPlatformAndroidMobile)[m [32m+[m[32m d->momFrictionPerStep = 10 * gap_UI;[m [32m+[m[32m#endif[m }[m return d;[m }[m [36m@@ -383,7 +386,24 @@[m [mstatic void update_TouchState_(void *ptr) {[m continue;[m }[m for (int step = 0; step < numSteps; step++) {[m [32m+[m[32m#if defined (iPlatformAndroidMobile)[m [32m+[m[32m float vel[3];[m [32m+[m[32m store_F3(mom->velocity, vel);[m [32m+[m[32m if (iAbs(vel[0]) < d->momFrictionPerStep) {[m [32m+[m[32m setX_F3(&mom->velocity, 0.0f);[m [32m+[m[32m }[m [32m+[m[32m else {[m [32m+[m[32m setX_F3(&mom->velocity, vel[0] + (vel[0] > 0 ? -1 : 1) * d->momFrictionPerStep);[m [32m+[m[32m }[m [32m+[m[32m if (iAbs(vel[1]) < d->momFrictionPerStep) {[m [32m+[m[32m setY_F3(&mom->velocity, 0.0f);[m [32m+[m[32m }[m [32m+[m[32m else {[m [32m+[m[32m setY_F3(&mom->velocity, vel[1] + (vel[1] > 0 ? -1 : 1) * d->momFrictionPerStep);[m [32m+[m[32m }[m [32m+[m[32m#else[m mulvf_F3(&mom->velocity, d->momFrictionPerStep);[m [32m+[m[32m#endif[m addv_F3(&mom->accum, mulf_F3(mom->velocity, d->stepDurationMs / 1000.0f));[m }[m const iInt2 pixels = initF3_I2(mom->accum);[m
text/gemini; charset=utf-8
This content has been proxied by September (3851b).