Reordering page thumbnails and the grid view#803
Conversation
|
Size Change: -2.44 kB (0%) Total Size: 868 kB
ℹ️ View Unchanged
|
e17a388 to
314276d
Compare
|
@dvoytenko @barklund this is ready for review. It seems like we might have overcomplicated the scrolling behavior in #551 , a simple |
| } = useReorderable(); | ||
| const handlePointerEnter = useCallback(() => { | ||
| setCurrentSeparator(position); | ||
| separatorRef.current.scrollIntoView({ |
There was a problem hiding this comment.
Safari only supports scrollIntoView with boolean parameter, but not smooth behavior option.
There was a problem hiding this comment.
That should be alright, just a slightly worse experience. Otherwise we can revert back to @barklund 's approach which should work for all browsers
merapi
left a comment
There was a problem hiding this comment.
Also, noticed 3 warnings in the console.
|
If we're good with using |
Though I don't have a strong opinion on |
|
There is a couple of related warnings in the console: |
|
@swissspidy @merapi ready :) |
|
@merapi Sorry, I refactored and totally forgot about that. Should be fixed now :)) |
Can you check the Grid view? I think we need a fix there too. |
|
Did a refactor (went back to using @barklund 's scroller approach since it was smoother) and fixed all of those issues :) |
barklund
left a comment
There was a problem hiding this comment.
This works really well now - great job. There's just a single bug with the first separator missing in the carousel when it's scrollable.
barklund is out but addressed all requested changes





Closes #746
Closes #332
Closes #517
Uses the same generalized
<Reorderable/>component in the layers panel, the page thumbnails and the grid view/cc @dvoytenko