patternfly/angular-patternfly

View on GitHub
src/canvas-view/canvas/dragging-service.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function Factory has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function Factory (mouseCapture) {
    //
    // Threshold for dragging.
    // When the mouse moves by at least this amount dragging starts.
    //
Severity: Major
Found in src/canvas-view/canvas/dragging-service.js - About 2 hrs to fix

    Function startDrag has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          startDrag: function (evt, config) {
            var dragging = false;
            var x = evt.pageX;
            var y = evt.pageY;
    
    
    Severity: Minor
    Found in src/canvas-view/canvas/dragging-service.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status