Keep the Grab Point When Moving Large Widgets

Thursday, November 12, 2026

Android Hitoma Launcher Technical

t f B! P L

Version(s) containing the fix: 2.6.0, 2.6.2.

The finger was on screen, but the widget would not move

On October 3, 2026, we investigated difficulty moving large widgets to another page. The old calculation treated the finger position as the widget’s top-left corner. Grabbing the center pushed its right edge outside the placement area, so position updates were rejected even while the finger remained on screen.

A position error may be inconspicuous with small icons but become obvious with large items and edge interactions.

Keep the grabbed spot under the finger

At drag start, remember the distance from the top-left corner to the finger. Preserve that distance when calculating the new top-left position. Grabbing the center or an edge then does not make the item jump.

The screen and the placement area may also have different origins. Convert the finger position into coordinates relative to the placement area instead of using screen coordinates directly.

Fit the whole item, not just the finger

A three-cell-wide item in five columns can start at columns 0–2. A finger in columns 0–4 does not guarantee that the item fits. Subtract the item’s size from the available area to calculate valid positions.

The same reasoning applies vertically. Exclude page indicators and margins from the usable placement area.

Do not change the movement rule when a page changes

We removed the special jump to the opposite side during a page change and continued the same grab-point calculation. Holding the finger at the edge does not turn another page until it leaves the edge.

The dragged item also keeps its identity across reloads. While a resize is being saved, older load results must not restore the previous size.

Code from the Fix

The following excerpts illustrate the fix; some examples omit surrounding code.

val origin = pointer - grabOffset - gridOrigin
val column = (origin.x / cellWidth).roundToInt()
    .coerceIn(0, gridColumnCount - widgetColumnSpan)

Do not check dragging only with small items

Combine center and edge grabs, large items, placement boundaries, and page changes. Looking at whether the whole item reaches a valid position reveals more than looking only at finger movement.

Card and shape editors can likewise distinguish finger position, grab point, and item size. Keeping the grabbed spot stable makes the interaction natural even when its surroundings change.

Search This Blog

QooQ