Prevent slider and image drag i-beam cursor on safari#14381
Conversation
|
@puneetlath @aimane-chnaif One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
While testing, I noticed inconsistent behavior between safari and other browsers when drag after selecting text. Safari (production): safari-production.movSafari (after fix): safari-fix.movChrome (production): chrome-production.movChrome (after fix): chrome-fix.movSo in some cases text is deselected and in some cases, text keeps selected.
This is minor issue and not actually affects app features. I am not sure this should be handled here. |
|
@aimane-chnaif I have tested it just now, first one is same at my side in both production and local. |
@jatinsonijs which one exactly? can you test all browsers and comment with chart like I did? |
|
@aimane-chnaif other are same are you added
|
|
@aimane-chnaif I think we can leave it as it is bcz there is no use case here text selection + drag. |
yup, other than that, looks good and tests well. |
|
Hmm, that's interesting. Great job with thorough testing. I think I agree with you both that this doesn't matter. There are no expectations around whether text should stay selected or not after selecting and then interacting with another element, so I think it's fine. No user will have any expectations or think this is a bug. |
Reviewer Checklist
Screenshots/VideosWebweb-chrome.movweb-safari.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.mp4Desktopdesktop.moviOSios.mp4Androidandroid.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.2.57-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.2.57-3 🚀
|
Details
Cursor Pointer changes to I-beam while dragging image or slider knob in edit photo. Prevented this default behaviour by disable selection on slider and image cropper elements.
Fixed Issues
$ #13688
PROPOSAL: #13688 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
web-safari.mp4
Mobile Web - Chrome
mweb-android.mov
Mobile Web - Safari
mweb-ios.mov
Desktop
desktop.mp4
iOS
mobile-ios.mp4
Android
mobile-android.mov