-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent slider and image drag i-beam cursor on safari #14381
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component 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