Skip to content

Commit 265207b

Browse files
nbitonfranck-boullier
authored andcommitted
feat: double tap tocreate pin on floor plan; swipe to pan (#877)
1 parent 26878fa commit 265207b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

imports/ui/case-wizard/case-wizard.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ class CaseWizard extends Component {
216216
})
217217
})
218218
}
219-
}, {
220-
disableNormalPan: true
221219
})
222220
}
223221

@@ -391,7 +389,7 @@ class CaseWizard extends Component {
391389
className='mt3 w-100 h5 relative ba b--gray-93 overflow-hidden'
392390
ref={el => { this.floorPlanContainer = el }}
393391
>
394-
<div className='absolute top-0 left-0 right-0 bottom-0 overflow-hidden' onClick={this.handleFloorPlanContainerClicked}>
392+
<div className='absolute top-0 left-0 right-0 bottom-0 overflow-hidden' onDoubleClick={this.handleFloorPlanContainerClicked}>
395393
<img
396394
onLoad={this.handleFloorPlanLoaded}
397395
className='obj-contain w-100'
@@ -415,7 +413,7 @@ class CaseWizard extends Component {
415413
))}
416414
</div>
417415
<div className='mt2 f7 gray lh-copy'>
418-
Tap on the floorplan to specify the location in the unit. Pinch or spread with two fingers to zoom. Tap an existing marker to remove it.
416+
<span className='b'>Double tap</span> on the floorplan to specify the location in the unit. Swipe to pan. Pinch or spread with two fingers to zoom. Tap an existing marker to remove it.
419417
</div>
420418
</div>
421419
)}

0 commit comments

Comments
 (0)