How to use the framesync.cancelSync.update function in framesync

To help you get started, we’ve selected a few framesync examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Popmotion / popmotion / packages / popmotion / src / input / multitouch / index.ts View on Github external
stop: () => {
        cancelSync.update(updatePoint);
        updateOnMove.stop();
      }
    };
github framer / motion / src / gestures / use-pan-gesture.ts View on Github external
function cancelPan() {
        removePointerEvents()
        cancelSync.update(updatePoint)
        unblockViewportScroll()
    }
github Popmotion / popmotion / packages / popmotion / src / animations / tween / index.ts View on Github external
process = sync.update(({ delta }) => {
          elapsed += delta;
          updateTween();

          if (isTweenComplete()) {
            cancelSync.update(process);
            complete && sync.update(complete, false, true);
          }
        }, true);
      };
github Popmotion / popmotion / packages / popmotion / src / input / pointer / mouse.ts View on Github external
stop: () => {
        cancelSync.update(updatePoint);
        updateOnMove.stop();
      }
    };