@@ -267,14 +267,14 @@ const Cards = props => {
267
267
// Tutorial cards need to calculate their own dragging bounds
268
268
// to allow for dragging the cards off the left, right and bottom
269
269
// edges of the workspace.
270
- const cardHorizontalOffset = 400 ; // ~80% of card width
271
- const cardVerticalOffset = expanded ? 257 : 0 ; // ~80% of card height, if expanded
270
+ const cardHorizontalDragOffset = 400 ; // ~80% of card width
271
+ const cardVerticalDragOffset = expanded ? 257 : 0 ; // ~80% of card height, if expanded
272
272
const menuBarHeight = 48 ; // TODO: get pre-calculated from elsewhere?
273
273
274
274
if ( x === 0 && y === 0 ) {
275
275
// initialize positions
276
276
x = isRtl ? - 292 : 292 ;
277
- x += cardHorizontalOffset ;
277
+ x += cardHorizontalDragOffset ;
278
278
// The tallest cards are about 320px high, and the default position is pinned
279
279
// to near the bottom of the blocks palette to allow room to work above.
280
280
const tallCardHeight = 320 ;
@@ -289,10 +289,10 @@ const Cards = props => {
289
289
< div
290
290
className = { styles . cardContainerOverlay }
291
291
style = { {
292
- width : `${ window . innerWidth + ( 2 * cardHorizontalOffset ) } px` ,
293
- height : `${ window . innerHeight - menuBarHeight + cardVerticalOffset } px` ,
292
+ width : `${ window . innerWidth + ( 2 * cardHorizontalDragOffset ) } px` ,
293
+ height : `${ window . innerHeight - menuBarHeight + cardVerticalDragOffset } px` ,
294
294
top : `${ menuBarHeight } px` ,
295
- left : `${ - cardHorizontalOffset } px`
295
+ left : `${ - cardHorizontalDragOffset } px`
296
296
} }
297
297
>
298
298
< Draggable
0 commit comments