magnifier: Sync MouseTrackingMode values with the gsettings enum
The tracking modes "push" and "proportional" are swapped. https://bugzilla.gnome.org/show_bug.cgi?id=629884
This commit is contained in:
parent
bff553e978
commit
0c2aa1437d
@ -15,8 +15,8 @@ const MagnifierDBus = imports.ui.magnifierDBus;
|
|||||||
const MouseTrackingMode = {
|
const MouseTrackingMode = {
|
||||||
NONE: 0,
|
NONE: 0,
|
||||||
CENTERED: 1,
|
CENTERED: 1,
|
||||||
PUSH: 2,
|
PROPORTIONAL: 2,
|
||||||
PROPORTIONAL: 3
|
PUSH: 3
|
||||||
};
|
};
|
||||||
|
|
||||||
const ScreenPosition = {
|
const ScreenPosition = {
|
||||||
@ -681,7 +681,7 @@ ZoomRegion.prototype = {
|
|||||||
* @mode: One of the enum MouseTrackingMode values.
|
* @mode: One of the enum MouseTrackingMode values.
|
||||||
*/
|
*/
|
||||||
setMouseTrackingMode: function(mode) {
|
setMouseTrackingMode: function(mode) {
|
||||||
if (mode >= MouseTrackingMode.NONE && mode <= MouseTrackingMode.PROPORTIONAL)
|
if (mode >= MouseTrackingMode.NONE && mode <= MouseTrackingMode.PUSH)
|
||||||
this._mouseTrackingMode = mode;
|
this._mouseTrackingMode = mode;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user