You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If used on a device that is not in English metrics, float values are represented by commas and not dots, i.e. 302.2 will appear as 302,2 in French for example.
This causes all call to javascript methods with float values to fail, for example:
android.selection.startTouch(100,00000,20,00000);
A way to make this work in all cases would be to surround floatvalues by single quotes:
Thank you for this great code! I've been looking for long time for something like this.
I did test your code on a Galaxy S3 phone and on a Nexus 7 tablet and in of both devices the selection didn't work. Nevertheless on the emulator the selection worked out.
Then what I figured out is that both devices had locale French and that what was causing trouble was this kind of strings:
If used on a device that is not in English metrics,
float
values are represented by commas and not dots, i.e.302.2
will appear as302,2
in French for example.This causes all call to javascript methods with
float
values to fail, for example:A way to make this work in all cases would be to surround
float
values by single quotes:and parse them to
float
in the javascript methods (parseFloat(value)
)The text was updated successfully, but these errors were encountered: