Skip to content

Commit b5955ae

Browse files
author
Matt Lewis
committed
fix(day-view): fix scrolling on an ipad
Fixes #458
1 parent 3c3c77c commit b5955ae

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/modules/day/calendar-day-view.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export interface DayViewEventResize {
117117
[segmentHeight]="hourSegmentHeight"
118118
[locale]="locale"
119119
[customTemplate]="hourSegmentTemplate"
120-
(mwlClick)="hourSegmentClicked.emit({date: segment.date})"
120+
(click)="hourSegmentClicked.emit({date: segment.date})"
121121
[class.cal-drag-over]="segment.dragOver"
122122
mwlDroppable
123123
(dragEnter)="segment.dragOver = true"

src/modules/day/calendar-day-view.scss

-8
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010
background-color: #fafafa;
1111
}
1212

13-
/* stylelint-disable-next-line selector-type-no-unknown */
14-
mwl-calendar-day-view-hour-segment {
15-
// hacky fix for https://github.com/mattlewis92/angular-calendar/issues/358 and hammerjs breaking scrolling
16-
touch-action: initial !important;
17-
user-select: initial !important;
18-
-webkit-user-drag: initial !important;
19-
}
20-
2113
/* stylelint-disable-next-line selector-type-no-unknown */
2214
mwl-calendar-day-view-hour-segment, // fix for https://github.com/mattlewis92/angular-calendar/issues/260
2315
.cal-hour-segment {

0 commit comments

Comments
 (0)