Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

129
Views
Handlers flow pattern

pointer dragging class containes the handlers for mouseup/mousedown/mousemove. That is the "point of entry"...follows the mouseDown handler

var PointerDragging = /** @class */ (function () {
        function PointerDragging(containerEl) {
            var _this = this;
       // various props here
            this.handleMouseDown = function (ev) {
            
                if (!_this.shouldIgnoreMouse() &&
                    isPrimaryMouseButton(ev) &&
                    _this.tryStart(ev)) {
                    var pev = _this.createEventFromMouse(ev, true);
       
                    _this.emitter.trigger('pointerdown', pev);
                    _this.initScrollWatch(pev);
                    if (!_this.shouldIgnoreMove) {
                        document.addEventListener('mousemove', _this.handleMouseMove);
                    }
                    document.addEventListener('mouseup', _this.handleMouseUp);
                }

The above will lead to FeatureFullEmentDragging class respective handler(mousedown)..then to HitDragging class respective handler and then to DateClicking Class.

This is the point I do not understand...at this point the flow will restart from PointerDragging mouseDown handler all the way to DateSelecting Class and then again from Pointerdragging class... The handlers in DateClicking and DateSelecting Class(in this example i am referring to mousedown handlers) do not have code that initiates this restart...then which piece of code is responsible for it?

Cause this must triggered from somehwere..but from where and why?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!