[PATCH v5 2/2] fix hotspot clamping to max dim instead of 1px offset