Replace anchor point by translation and pivot point
Anchor point is deprecated and will eventually be removed from Mutter's Clutter. Replace them by a combination of pivot point and translation. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1334
This commit is contained in:
@ -489,7 +489,10 @@ var Magnifier = class Magnifier {
|
||||
_updateMouseSprite() {
|
||||
this._updateSpriteTexture();
|
||||
let [xHot, yHot] = this._cursorTracker.get_hot();
|
||||
this._mouseSprite.set_anchor_point(xHot, yHot);
|
||||
this._mouseSprite.set({
|
||||
translation_x: -xHot,
|
||||
translation_y: -yHot,
|
||||
});
|
||||
}
|
||||
|
||||
_updateSpriteTexture() {
|
||||
|
Reference in New Issue
Block a user