Lines Matching refs:ev

366 function isPrimaryMouseButton(ev) {
367 return ev.which === 1 && !ev.ctrlKey;
370 function getEvX(ev) {
371 var touches = ev.originalEvent.touches;
377 return ev.pageX;
380 function getEvY(ev) {
381 var touches = ev.originalEvent.touches;
387 return ev.pageY;
390 function getEvIsTouch(ev) {
391 return /^touch/.test(ev.type);
405 function preventDefault(ev) {
406 ev.preventDefault();
1630 var intercept = function (ev, extra) {
1834 HitDragListener.prototype.handleInteractionStart = function (ev) {
1841 if (ev) {
1842 origPoint = { left: util_1.getEvX(ev), top: util_1.getEvY(ev) };
1867 _super.prototype.handleInteractionStart.call(this, ev);
1870 HitDragListener.prototype.handleDragStart = function (ev) {
1872 _super.prototype.handleDragStart.call(this, ev);
1874 hit = this.queryHit(util_1.getEvX(ev), util_1.getEvY(ev));
1882 HitDragListener.prototype.handleDrag = function (dx, dy, ev) {
1884 _super.prototype.handleDrag.call(this, dx, dy, ev);
1885 hit = this.queryHit(util_1.getEvX(ev), util_1.getEvY(ev));
1896 HitDragListener.prototype.handleDragEnd = function (ev) {
1898 _super.prototype.handleDragEnd.call(this, ev);
1921 HitDragListener.prototype.handleInteractionEnd = function (ev, isCancelled) {
1922 _super.prototype.handleInteractionEnd.call(this, ev, isCancelled);
2503 window.addEventListener('touchmove', this.handleTouchMoveProxy = function (ev) {
2504 _this.handleTouchMove($.Event(ev));
2510 window.addEventListener('scroll', this.handleScrollProxy = function (ev) {
2511 _this.handleScroll($.Event(ev));
2524 GlobalEmitter.prototype.handleTouchStart = function (ev) {
2527 this.stopTouch(ev, true); // skipMouseIgnore=true
2529 this.trigger('touchstart', ev);
2531 GlobalEmitter.prototype.handleTouchMove = function (ev) {
2533 this.trigger('touchmove', ev);
2536 GlobalEmitter.prototype.handleTouchCancel = function (ev) {
2538 this.trigger('touchcancel', ev);
2541 this.stopTouch(ev);
2544 GlobalEmitter.prototype.handleTouchEnd = function (ev) {
2545 this.stopTouch(ev);
2549 GlobalEmitter.prototype.handleMouseDown = function (ev) {
2551 this.trigger('mousedown', ev);
2554 GlobalEmitter.prototype.handleMouseMove = function (ev) {
2556 this.trigger('mousemove', ev);
2559 GlobalEmitter.prototype.handleMouseUp = function (ev) {
2561 this.trigger('mouseup', ev);
2564 GlobalEmitter.prototype.handleClick = function (ev) {
2566 this.trigger('click', ev);
2571 GlobalEmitter.prototype.handleSelectStart = function (ev) {
2572 this.trigger('selectstart', ev);
2574 GlobalEmitter.prototype.handleContextMenu = function (ev) {
2575 this.trigger('contextmenu', ev);
2577 GlobalEmitter.prototype.handleScroll = function (ev) {
2578 this.trigger('scroll', ev);
2582 GlobalEmitter.prototype.stopTouch = function (ev, skipMouseIgnore) {
2586 this.trigger('touchend', ev);
3589 this.el.on(name, function (ev) {
3590 … if (!$(ev.target).is(_this.segSelector + ':not(.fc-helper),' + // directly on an event element
3595 return handler.call(_this, ev);
3612 el.on(name, this.segSelector, function (ev) {
3613 var segEl = $(ev.currentTarget);
3617 return handler.call(_this, seg, ev); // context will be the Grid
3640 InteractiveDateComponent.prototype.canStartSelection = function (seg, ev) {
3641 return util_1.getEvIsTouch(ev) &&
3642 !this.canStartResize(seg, ev) &&
3646 InteractiveDateComponent.prototype.canStartDrag = function (seg, ev) {
3647 return !this.canStartResize(seg, ev) &&
3650 InteractiveDateComponent.prototype.canStartResize = function (seg, ev) {
3653 return (!util_1.getEvIsTouch(ev) || view.isEventDefSelected(eventDef)) &&
3655 $(ev.target).is('.fc-resizer');
4145 View.prototype.reportEventDrop = function (eventInstance, eventMutation, el, ev) {
4155 (dateMutation && dateMutation.dateDelta) || moment.duration(), undoFunc, el, ev);
4158 View.prototype.triggerEventDrop = function (eventInstance, dateDelta, undoFunc, el, ev) {
4165 ev,
4176 View.prototype.reportExternalDrop = function (singleEventDef, isEvent, isSticky, el, ev, ui) {
4180 this.triggerExternalDrop(singleEventDef, isEvent, el, ev, ui);
4183 View.prototype.triggerExternalDrop = function (singleEventDef, isEvent, el, ev, ui) {
4189 ev,
4208 View.prototype.reportEventResize = function (eventInstance, eventMutation, el, ev) {
4214 this.triggerEventResize(eventInstance, resizeDelta, undoFunc, el, ev);
4217 View.prototype.triggerEventResize = function (eventInstance, resizeDelta, undoFunc, el, ev) {
4224 ev,
4234 View.prototype.select = function (footprint, ev) {
4235 this.unselect(ev);
4237 this.reportSelection(footprint, ev);
4248 View.prototype.reportSelection = function (footprint, ev) {
4250 this.triggerSelect(footprint, ev);
4253 View.prototype.triggerSelect = function (footprint, ev) {
4260 ev,
4267 View.prototype.unselect = function (ev) {
4276 args: [ev, this]
4315 View.prototype.handleDocumentMousedown = function (ev) {
4316 if (util_1.isPrimaryMouseButton(ev)) {
4317 this.processUnselect(ev);
4320 View.prototype.processUnselect = function (ev) {
4321 this.processRangeUnselect(ev);
4322 this.processEventUnselect(ev);
4324 View.prototype.processRangeUnselect = function (ev) {
4330 if (!ignore || !$(ev.target).closest(ignore).length) {
4331 this.unselect(ev);
4335 View.prototype.processEventUnselect = function (ev) {
4337 if (!$(ev.target).closest('.fc-selected').length) {
4358 View.prototype.triggerDayClick = function (footprint, dayEl, ev) {
4362 args: [dateProfile.start, ev, this]
6292 DragListener.prototype.startInteraction = function (ev, extraOptions) {
6294 if (ev.type === 'mousedown') {
6298 else if (!util_1.isPrimaryMouseButton(ev)) {
6302 ev.preventDefault(); // prevents native selection in most browsers
6312 this.isTouch = util_1.getEvIsTouch(ev);
6313 this.isGeneric = ev.type === 'dragstart';
6316 this.originX = util_1.getEvX(ev);
6317 this.originY = util_1.getEvY(ev);
6318 this.scrollEl = util_1.getScrollParent($(ev.target));
6321 this.handleInteractionStart(ev);
6322 this.startDelay(ev);
6324 this.handleDistanceSurpassed(ev);
6328 DragListener.prototype.handleInteractionStart = function (ev) {
6329 this.trigger('interactionStart', ev);
6331 DragListener.prototype.endInteraction = function (ev, isCancelled) {
6333 this.endDrag(ev);
6341 this.handleInteractionEnd(ev, isCancelled);
6345 DragListener.prototype.handleInteractionEnd = function (ev, isCancelled) {
6346 this.trigger('interactionEnd', ev, isCancelled || false);
6385 DragListener.prototype.startDrag = function (ev, extraOptions) {
6386 this.startInteraction(ev, extraOptions); // ensure interaction began
6389 this.handleDragStart(ev);
6392 DragListener.prototype.handleDragStart = function (ev) {
6393 this.trigger('dragStart', ev);
6395 DragListener.prototype.handleMove = function (ev) {
6396 var dx = util_1.getEvX(ev) - this.originX;
6397 var dy = util_1.getEvY(ev) - this.originY;
6403 this.handleDistanceSurpassed(ev);
6407 this.handleDrag(dx, dy, ev);
6411 DragListener.prototype.handleDrag = function (dx, dy, ev) {
6412 this.trigger('drag', dx, dy, ev);
6413 this.updateAutoScroll(ev); // will possibly cause scrolling
6415 DragListener.prototype.endDrag = function (ev) {
6418 this.handleDragEnd(ev);
6421 DragListener.prototype.handleDragEnd = function (ev) {
6422 this.trigger('dragEnd', ev);
6445 DragListener.prototype.handleDistanceSurpassed = function (ev) {
6448 this.startDrag(ev);
6453 DragListener.prototype.handleTouchMove = function (ev) {
6456 ev.preventDefault();
6458 this.handleMove(ev);
6460 DragListener.prototype.handleMouseMove = function (ev) {
6461 this.handleMove(ev);
6465 DragListener.prototype.handleTouchScroll = function (ev) {
6469 this.endInteraction(ev, true); // isCancelled=true
6518 DragListener.prototype.updateAutoScroll = function (ev) {
6529 topCloseness = (sensitivity - (util_1.getEvY(ev) - bounds.top)) / sensitivity;
6530 bottomCloseness = (sensitivity - (bounds.bottom - util_1.getEvY(ev))) / sensitivity;
6531 leftCloseness = (sensitivity - (util_1.getEvX(ev) - bounds.left)) / sensitivity;
6532 rightCloseness = (sensitivity - (bounds.right - util_1.getEvX(ev))) / sensitivity;
7217 EventPointing.prototype.handleClick = function (seg, ev) {
7220 args: [seg.footprint.getEventLegacy(), ev, this.view]
7223 ev.preventDefault();
7227 EventPointing.prototype.handleMouseover = function (seg, ev) {
7237 args: [seg.footprint.getEventLegacy(), ev, this.view]
7243 EventPointing.prototype.handleMouseout = function (seg, ev) {
7254 ev || {},
7745 .on('click', function (ev) {
7748 var moreEl = $(ev.currentTarget);
7766 ev,
9497 MouseFollower.prototype.start = function (ev) {
9500 this.y0 = util_1.getEvY(ev);
9501 this.x0 = util_1.getEvX(ev);
9507 if (util_1.getEvIsTouch(ev)) {
9596 MouseFollower.prototype.handleMove = function (ev) {
9597 this.topDelta = util_1.getEvY(ev) - this.y0;
9598 this.leftDelta = util_1.getEvX(ev) - this.x0;
9695 Popover.prototype.documentMousedown = function (ev) {
9697 if (this.el && !$(ev.target).closest(this.el).length) {
10809 el.on('click.fc', 'a[data-goto]', function (ev) {
10810 var anchorEl = $(ev.currentTarget);
10817 customAction(date, ev);
11020 Calendar.prototype.windowResize = function (ev) {
11024 ev.target === window &&
11584 ExternalDropping.prototype.handleDragStart = function (ev, ui) {
11588 el = $((ui ? ui.item : null) || ev.target);
11594 this.listenToExternalDrag(el, ev, ui);
11600 ExternalDropping.prototype.listenToExternalDrag = function (el, ev, ui) {
11646 interactionEnd: function (ev) {
11650 el, ev, ui);
11656 dragListener.startDrag(ev); // start listening immediately
11791 EventResizing.prototype.handleMouseDown = function (seg, ev) {
11792 if (this.component.canStartResize(seg, ev)) {
11793 this.buildDragListener(seg, $(ev.target).is('.fc-start-resizer'))
11794 .startInteraction(ev, { distance: 5 });
11797 EventResizing.prototype.handleTouchStart = function (seg, ev) {
11798 if (this.component.canStartResize(seg, ev)) {
11799 this.buildDragListener(seg, $(ev.target).is('.fc-start-resizer'))
11800 .startInteraction(ev);
11823 dragStart: function (ev) {
11826 _this.eventPointing.handleMouseout(seg, ev);
11827 _this.segResizeStart(seg, ev);
11870 interactionEnd: function (ev) {
11872 _this.segResizeStop(seg, ev);
11876 view.reportEventResize(eventInstance, resizeMutation, el, ev);
11884 EventResizing.prototype.segResizeStart = function (seg, ev) {
11890 ev,
11897 EventResizing.prototype.segResizeStop = function (seg, ev) {
11903 ev,
11990 EventDragging.prototype.handleMousedown = function (seg, ev) {
11992 this.component.canStartDrag(seg, ev)) {
11993 this.buildDragListener(seg).startInteraction(ev, { distance: 5 });
11996 EventDragging.prototype.handleTouchStart = function (seg, ev) {
12002 if (component.canStartDrag(seg, ev)) {
12003 this.buildDragListener(seg).startInteraction(ev, settings);
12005 else if (component.canStartSelection(seg, ev)) {
12006 this.buildSelectListener(seg).startInteraction(ev, settings);
12021 dragStart: function (ev) {
12029 interactionEnd: function (ev) {
12059 interactionStart: function (ev) {
12070 mouseFollower.start(ev);
12072 dragStart: function (ev) {
12081 _this.eventPointing.handleMouseout(seg, ev);
12082 _this.segDragStart(seg, ev);
12136 interactionEnd: function (ev) {
12142 _this.segDragStop(seg, ev);
12147 view.reportEventDrop(eventInstance, eventDefMutation, el, ev);
12156 EventDragging.prototype.segDragStart = function (seg, ev) {
12162 ev,
12169 EventDragging.prototype.segDragStop = function (seg, ev) {
12175 ev,
12257 component.bindDateHandlerToEl(el, 'mousedown', function (ev) {
12259 dragListener.startInteraction(ev, {
12264 component.bindDateHandlerToEl(el, 'touchstart', function (ev) {
12266 dragListener.startInteraction(ev, {
12283 dragStart: function (ev) {
12284 …_this.view.unselect(ev); // since we could be rendering a new selection, we want to clear any old …
12313 interactionEnd: function (ev, isCancelled) {
12316 _this.view.reportSelection(selectionFootprint, ev);
12382 component.bindDateHandlerToEl(el, 'mousedown', function (ev) {
12384 dragListener.startInteraction(ev);
12387 component.bindDateHandlerToEl(el, 'touchstart', function (ev) {
12389 dragListener.startInteraction(ev);
12412 interactionEnd: function (ev, isCancelled) {
12417 … _this.view.triggerDayClick(componentFootprint, component.getHitEl(dayClickHit), ev);
14347 ListEventPointing.prototype.handleClick = function (seg, ev) {
14349 _super.prototype.handleClick.call(this, seg, ev); // might prevent the default action
14351 if (!$(ev.target).closest('a[href]').length) {
14353 if (url && !ev.isDefaultPrevented()) { // jsEvent not cancelled in handler
14511 buttonClick = function (ev) {
14513 customButtonProps.click.call(buttonEl[0], ev);
14559 buttonClick(ev);