Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mobile - BlockDraggable - Rename maxWidth variable to contentWidth
  • Loading branch information
Gerardo committed May 17, 2022
commit a6e90162cb7aa9f9bb2cd7714a66c2824d86d123
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const BlockDraggableWrapper = ( { children, isRTL } ) => {
const { left, right } = useSafeAreaInsets();
const { width } = useSafeAreaFrame();
const safeAreaOffset = left + right;
const maxWidth = width - safeAreaOffset;
const contentWidth = width - safeAreaOffset;
animatedScrollRef( scrollRef );

const scroll = {
Expand Down Expand Up @@ -210,7 +210,7 @@ const BlockDraggableWrapper = ( { children, isRTL } ) => {
const chipOffset = chip.width.value / 2;
const translateX = ! isRTL
? chip.x.value - chipOffset
: -( maxWidth - ( chip.x.value + chipOffset ) );
: -( contentWidth - ( chip.x.value + chipOffset ) );

return {
transform: [
Expand Down