Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix matcher scrolling #434

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
// don't update past midnight
setViewBounds(prevBounds => {
if (prevBounds.end! <= MAX.minus(SCROLL_AMT)) {
return prevBounds.mapEndpoints(datetime => datetime.minus(SCROLL_AMT));
return prevBounds.mapEndpoints(datetime => datetime.plus(SCROLL_AMT));
} else {
return prevBounds;
}
Expand Down Expand Up @@ -313,7 +313,7 @@
* @param day - the day (column) the user ended the drag in
* @param interval - the time interval (row) the user ended the drag in
*/
const onCreateDragEnd = (day: string, interval: Interval) => {

Check warning on line 316 in csm_web/frontend/src/components/enrollment_automation/calendar/Calendar.tsx

View workflow job for this annotation

GitHub Actions / ESLint

csm_web/frontend/src/components/enrollment_automation/calendar/Calendar.tsx#L316

'day' is defined but never used (@typescript-eslint/no-unused-vars)

Check warning on line 316 in csm_web/frontend/src/components/enrollment_automation/calendar/Calendar.tsx

View workflow job for this annotation

GitHub Actions / ESLint

csm_web/frontend/src/components/enrollment_automation/calendar/Calendar.tsx#L316

'interval' is defined but never used (@typescript-eslint/no-unused-vars)
if (!eventCreationEnabled || !creatingEvent) {
return;
}
Expand All @@ -332,7 +332,7 @@
*
* @param e - event that caused the cancellation of the drag
*/
const onCreateDragEndCancel = (e: MouseEvent | FocusEvent) => {

Check warning on line 335 in csm_web/frontend/src/components/enrollment_automation/calendar/Calendar.tsx

View workflow job for this annotation

GitHub Actions / ESLint

csm_web/frontend/src/components/enrollment_automation/calendar/Calendar.tsx#L335

'e' is defined but never used (@typescript-eslint/no-unused-vars)
setCurCreatedEvent({
day: "",
start: DATETIME_INITIAL_INVALID,
Expand Down
Loading