GimpUi.ScrolledPreview.prototype.set_position

function set_position(x: Number(gint), y: Number(gint)): void {
    // Gjs wrapper for gimp_scrolled_preview_set_position()
}
  

Since 2.4

x

horizontal scroll offset

y

vertical scroll offset