ievgennaida / animation-timeline-control

Canvas based TypeScript animation timeline editor.
MIT License
357 stars 65 forks source link

Allow scrubbing even if the playhead is not selected when mouse is in the header area. This makes it easier to scrub since the user does not have to aim the thin line. #6

Closed artifacts closed 4 years ago

artifacts commented 4 years ago

Sorry for the noisy diff, I don't know where these whitespace diffs come from, didn't reformat this time. I am using vscode.

Essentially it is just line 479: if (pos.y <= options.headerHeight || (pos.x >= timeLinePos - width / 2 && pos.x <= timeLinePos + width / 2)) {

ievgennaida commented 4 years ago

Don't worry, anyway your class change marked the file as fully changed :) I will start the migration base on those fixes.