Skip to content

Commit 6b4ef15

Browse files
Sergei KoshevarovGondragosMihajloHomarobot-ci-heartex
authored
fix: LEAP-1931: Correct frame offset calculation in Timeline (#7244)
Co-authored-by: Gondragos <Gondragos@users.noreply.github.com> Co-authored-by: MihajloHoma <MihajloHoma@users.noreply.github.com> Co-authored-by: robot-ci-heartex <robot-ci-heartex@users.noreply.github.com>
1 parent ddb046e commit 6b4ef15

File tree

1 file changed

+1
-1
lines changed
  • web/libs/editor/src/components/Timeline/Views/Frames

1 file changed

+1
-1
lines changed

web/libs/editor/src/components/Timeline/Views/Frames/Frames.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export const Frames: FC<TimelineViewProps> = ({
225225
const offset = getMouseToFrame(e);
226226
const frame = toSteps(offset, step) + 1;
227227

228-
if (offset >= 0 && offset <= rightLimit) {
228+
if (offset >= currentOffsetX && offset <= rightLimit + currentOffsetX) {
229229
setHoverEnabled(false);
230230
setRegionSelectionDisabled(true);
231231
setIndicatorOffset(offset);

0 commit comments

Comments
 (0)