Skip to content
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

fix(protocol-designer) fix drag and drop flickering issue #17600

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

koji
Copy link
Contributor

@koji koji commented Feb 26, 2025

Overview

fix drag and drop flickering issue

add debounce to set opacity since for drag & drop, controlling the render itself is kind of hard

Emily approved this update.
https://opentrons.slack.com/archives/C08CX5C6XA9/p1740665958752359?thread_ts=1740613084.868439&cid=C08CX5C6XA9

close AUTH-1471

Test Plan and Hands on Testing

create or import a protocol and go to edit protocol then try drag & drop labwares

Changelog

Review requests

Risk assessment

low

@koji koji changed the base branch from edge to chore_release-pd-8.4.3 February 26, 2025 22:43
@koji koji requested review from ncdiehl11 and syao1226 February 26, 2025 22:43
@koji koji marked this pull request as ready for review February 26, 2025 22:49
@koji koji requested a review from a team as a code owner February 26, 2025 22:49
@koji koji removed the request for review from a team February 26, 2025 22:49
Copy link
Collaborator

@ncdiehl11 ncdiehl11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works well and logic looks good

useEffect(() => {
const timer = setTimeout(() => {
setStableOpacity(slotFillOpacity)
}, 50)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this arbitrary? just the smallest number that works?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, but the value should be less than 100 since if we put a big number, ovelay isn't responded immediately.
i tested a couple of cases.
500: too slow and for swap labware, it didn't worked
200: a little bit slow for swap labware, kind of work but overlay's behavior is a little bit weird.

@koji koji merged commit edbf200 into chore_release-pd-8.4.3 Feb 28, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants