code: public static HorizontalDropLocation getHorizontalDropLocation(
          Element element, NativeEvent event, double leftRightRatio) {
          
          int clientX = WidgetUtil.getTouchOrMouseClientX(event);
      
          // Event coordinates are relative to the viewport, element absolute
          // position is relative to the document. Make element position relative
          // to viewport by adjusting for viewport scrolling. See #6021
          int elementLeft = element.getAbsoluteLeft() - Window.getScrollLeft();
          int offsetWidth = element.getOffsetWidth();
          int fromLeft = clientX - elementLeft;
      
          float percentageFromLeft = (fromLeft / (float) offsetWidth);
          if (percentageFromLeft < leftRightRatio) {
              return HorizontalDropLocation.LEFT;
          } else if (percentageFromLeft > 1 - leftRightRatio) {
              return HorizontalDropLocation.RIGHT;
          } else {
              return HorizontalDropLocation.CENTER;
          }
      }
docs: Unchanged from the original class.<p>