src/extensions/default/InlineTimingFunctionEditor/BezierCurveEditor.js
function mouseMoveRedraw() {
            if (!bezierEditor.dragElement) {
                animationRequest = null;
                return;
            }

            // Update code
            bezierEditor._commitTimingFunction();

            bezierEditor._updateCanvas();
            animationRequest = window.requestAnimationFrame(mouseMoveRedraw);
        }
function mouseMoveRedraw() {
            if (!bezierEditor.dragElement) {
                animationRequest = null;
                return;
            }

            // Update code
            bezierEditor._commitTimingFunction();

            bezierEditor._updateCanvas();
            animationRequest = window.requestAnimationFrame(mouseMoveRedraw);
        }
function mouseMoveRedraw ( ) { if ( ! bezierEditor . dragElement ) { animationRequest = null ; return ; } // Update code bezierEditor . _commitTimingFunction ( ) ; bezierEditor . _updateCanvas ( ) ; animationRequest = window . requestAnimationFrame ( mouseMoveRedraw ) ; }
Helper function to redraw curve
Helper function to redraw curve