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