@@ -32,6 +32,7 @@ export class HitDragging {
32
32
// options that can be set by caller
33
33
useSubjectCenter : boolean = false
34
34
requireInitial : boolean = true // if doesn't start out on a hit, won't emit any events
35
+ disablePointCheck : boolean = false
35
36
36
37
// internal state
37
38
offsetTrackers : { [ componentUid : string ] : OffsetTracker }
@@ -189,11 +190,14 @@ export class HitDragging {
189
190
// Ensure the component we are querying for the hit is accessibly my the pointer
190
191
// Prevents obscured calendars (ex: under a modal dialog) from accepting hit
191
192
// https://github.com/fullcalendar/fullcalendar/issues/5026
192
- offsetTracker . el . contains (
193
- document . elementFromPoint (
194
- // add-back origins to get coordinate relative to top-left of window viewport
195
- positionLeft + originLeft - window . scrollX ,
196
- positionTop + originTop - window . scrollY ,
193
+ (
194
+ this . disablePointCheck ||
195
+ offsetTracker . el . contains (
196
+ document . elementFromPoint (
197
+ // add-back origins to get coordinate relative to top-left of window viewport
198
+ positionLeft + originLeft - window . scrollX ,
199
+ positionTop + originTop - window . scrollY ,
200
+ )
197
201
)
198
202
) &&
199
203
( ! bestHit || hit . layer > bestHit . layer )
0 commit comments