boolean (TabLabel tabLabel, int deltaX, int deltaY) { Rectangle bounds = tabLabel.getBounds(); if (bounds.x + bounds.width + deltaX < 0 || bounds.x + bounds.width > tabLabel.getParent().getWidth()) return true; return Math.abs(deltaY) > tabLabel.getHeight() * TabLayout.getDragOutMultiplier(); }