Skip to content

Commit

Permalink
Check for quickpantorecord for user touch on records
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalcengio authored and micheal-w-wells committed Oct 19, 2023
1 parent b8e46cd commit 59e4ca4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions appv2/src/UI/Overlay/Records/RecordTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,16 @@ export const RecordTable = (props) => {
});
}}
onTouchStart={()=> {
dispatch({
type: USER_TOUCHED_RECORD,
payload: {
recordType: tableType,
id: tableType === 'Activity'? row.activity_id : row.site_id,
row: row
}
});
if (quickPanToRecord) {
dispatch({
type: USER_TOUCHED_RECORD,
payload: {
recordType: tableType,
id: tableType === 'Activity'? row.activity_id : row.site_id,
row: row
}
});
}
}}
className="record_table_row"
key={i}>
Expand Down

0 comments on commit 59e4ca4

Please sign in to comment.