Comments (3)
Thanks
So the key factors were the embedded fonts and the lack of word wrap.
With embedded fonts, there are some re-calculations done to the mouse event so that it can be translated into a row/column position. But then when we're out of the area, we trigger the auto-scroll functionality (assuming word wrap is off) and this is where it was going wrong .. the translated point was being fed back into the handler to work out where to extend the selection to, but the mouse translation was then being applied again -> suddenly it thought the mouse was way off to the bottom left somewhere...
Should be a generic fix for this kind of situation.
thanks
from adobe-runtime-support.
I added the code below to easily reproduce the problem:
FontManager.embed(Arial); // embed the Arial font
var format:TextFormat = new TextFormat();
format.font = "Arial";
var tf:TextField = new TextField();
tf.defaultTextFormat = format;
tf.border = true;
tf.width = 300;
tf.height = 200;
tf.wordWrap = false;
tf.multiline = true;
tf.type = TextFieldType.DYNAMIC;
tf.selectable = true;
tf.embedFonts = true;
tf.text = "first line\nsecond line\nthird line";
addChild(tf);
Video_240624092302_Slice_Slice.mp4
The issue only happens with embed fonts.
Click on any position in the middle of the second line, then move to the left/right until the mouse fall outside the text field, you can see the selection will be blinked and incorrect.
from adobe-runtime-support.
Fixed on AIR SDK 51.0.1.4.
Thanks!
from adobe-runtime-support.
Related Issues (20)
- [Docs] `NativeWindow` should be updated with mobile support HOT 1
- What do I need to do to set the targetSdkVersion to 34? HOT 2
- Error on debug on device since 51.0.1.4 HOT 4
- Google Play is giving me 30 days for SDK and APP-Billing HOT 4
- [Docs] `?? nullish coalescing` not in the list HOT 5
- iOS App - InvokeEvent Argument Array is NULL
- Error - DoABC2 HOT 10
- [Feature Request] WebSocket connect timeout HOT 1
- Android 34: Stagewebview inactive after coming back to foreground HOT 3
- ver 51.01.4 supports till targetsdk 33 but google requires 34 till end of august HOT 2
- [Android armv7] Cannot write files over 2.2 GB HOT 1
- TextField Chinese characters cannot be displayed on iOS18. HOT 5
- Using a `#` char in a `File` Reference on a network drive cuts the `nativePath` / `url` before the `#`
- Vector.<String>.includes() incorrectly returning false HOT 5
- [AIR 51.0.1.4][iOS 17] Application crash on start with Scout HOT 1
- [Feature Request] Accessing phone's color mode (Dark/Light) + Harman splash screen to adjust to it (Low Prio) HOT 4
- [AIR 51.0.1.4][Ubuntu 16 or similar] `malloc_consolidate(): invalid chunk size` crash with some devices
- 1 HOT 3
- [Feature Request] IPV6 fallback to IPV4 on socket and http connections
- Unicode updating & Emoji displaying HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adobe-runtime-support.