code: function (e) {
            // remove listener and marquee
            jQuery($window).off('mousemove', mousemove);
            $marquee.remove();
  
            // calculate change in units
            var curX = e.clientX;
            var pixelChange = curX - initX;
            var unitChange = Math.round(pixelChange * transformMultiplier * 100) / 100;
  
            // add to initial unit width
            var newWidth = unitWidth * 1 + unitChange;
            widget.setWidth(newWidth + widthUnits);
            $scope.$emit('widgetChanged', widget);
            $scope.$apply();
          }
docs: sets new widget width on mouseup