Summary: | textarea selectionDirection returns 'none' for mouse selection | ||
---|---|---|---|
Product: | WebKit | Reporter: | Bing Wang <wangbing.imail> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | ap, megan_gardner, rniwa, webkit-bug-importer, wenson_hsieh |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 13 | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=60403 |
Description
Bing Wang
2020-03-30 05:38:53 PDT
This property only works for keyboard selection (Shift+Right/Left) in WebKit and in Chrome. It does work for mouse selection in Firefox. (In reply to Bing Wang from comment #0) > Steps to reproduce the problem: > 1. Select some text inside a textarea in backward/forward direction > 2. get selectionDirection property on that textarea via javascript > > What is the expected behavior? > Expected to get value 'backward/forward' > > What went wrong? > Always get 'none' This is expected. On macOS, mouse selection is directionless. The selection extends backwards or forwards depending on user's input, at which point the direction will be determined. |