-
Notifications
You must be signed in to change notification settings - Fork 15
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
Make the token draggable #2441
Make the token draggable #2441
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…z/gallery-editor-token-draggable
Bundle SizesCompared against 0b6d352 Route: No significant changes found Dynamic import: No significant changes found |
transform: [ | ||
{ translateY: translateY.value ?? 0 }, | ||
{ | ||
scale: withSpring(isGestureActive.value ? 1.05 : 1), | ||
}, | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the scale for the row here. Kind of weird when hovering the token to drag but the **row ** as triggered too
<SortableTokenGrid | ||
columns={row.columns} | ||
items={row.items} | ||
size={widthPerToken} | ||
scrollContentOffsetY={scrollContentOffsetY} | ||
scrollViewRef={scrollViewRef} | ||
onDragStart={handleDragStart} | ||
onDragEnd={handleDragEnd} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component responsible to render the item in grid view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add this as a comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jakz you are literally a magician
<SortableTokenGrid | ||
columns={row.columns} | ||
items={row.items} | ||
size={widthPerToken} | ||
scrollContentOffsetY={scrollContentOffsetY} | ||
scrollViewRef={scrollViewRef} | ||
onDragStart={handleDragStart} | ||
onDragEnd={handleDragEnd} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add this as a comment?
style={{ | ||
height: containerHeight, | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's memoize this object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated it!
…z/gallery-editor-token-draggable
Summary of Changes
Demo or Before/After Pics
CleanShot.2024-04-26.at.15.02.22.mp4
Edge Cases
Testing Steps
Provide steps on how the reviewer can test the changes.
Checklist
Please make sure to review and check all of the following: