Skip to content

Commit 2781788

Browse files
authored
fix(GcodePreview): use approximate position (#1776)
Signed-off-by: Pedro Lamas <[email protected]>
1 parent 8a6b082 commit 2781788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/gcodePreview/getters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export const getters = {
298298

299299
const moves: readonly Move[] = state.moves
300300

301-
return binarySearch(moves, move => filePosition - move.filePosition)
301+
return binarySearch(moves, move => filePosition - move.filePosition, true)
302302
},
303303

304304
getLayerNrByFilePosition: (state, getters) => (filePosition: number): number => {

0 commit comments

Comments
 (0)