SlackTextViewController icon indicating copy to clipboard operation
SlackTextViewController copied to clipboard

Text selection may select more text than expected

Open BasThomas opened this issue 7 years ago • 3 comments

  • [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x] I've read and agree to the Code of Conduct.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Description

When manually selecting part of the text field, more text may be selected than expected. It can both select more characters to the left or to the right.

See this video: https://www.icloud.com/sharedalbum/#B0LG6XBubG3PB4W;F2EBB15C-1654-487A-B4CB-7E0EC460BE5B

Reproducible in:

  • [x] This is reproducible in the sample project.

Sample project setup: iOS 11.0 and 10.3.1, iPhone 5s simulator

SlackTextViewController version: Slack on iOS (v 3.28), SlackTextViewController 1.9.5 iOS version(s): iOS 11 Device(s): iPhone 7 Plus / 1st gen 12.9” iPad Pro

Steps to reproduce:

  1. Type some text
  2. Select a part of the text

Expected result:

It should select exactly the characters highlighted

Actual result:

More text than highlighted will be selected

BasThomas avatar Sep 21 '17 14:09 BasThomas

@BasThomas is this an issue on iOS 11 only then? Were you able to test and reproduce on the sample project?

dzenbot avatar Sep 22 '17 17:09 dzenbot

Haven’t been able to check on iOS 10 / in the sample project. Will update when I’ve had time to do so 👍

BasThomas avatar Sep 23 '17 19:09 BasThomas

Also reproducible on the sample project on iOS 11 and 10.3.1, using the iPhone 5s sim.

BasThomas avatar Sep 26 '17 17:09 BasThomas