Skip to content

Commit fe4dbb3

Browse files
committed
renamed offsetX, removed offsetY
1 parent 2c705e8 commit fe4dbb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/processing/android/PWallpaper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void onTouchEvent(MotionEvent event) {
188188
public void onOffsetsChanged(float xOffset, float yOffset,
189189
float xStep, float yStep, int xPixels, int yPixels) {
190190
if (sketch != null) {
191-
sketch.offsetX = xOffset;
191+
sketch.displayOffset = xOffset;
192192
sketch.offsetY = yOffset;
193193
}
194194
}

core/src/processing/core/PApplet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ public class PApplet extends Object implements PConstants {
280280
/**
281281
* Offset for wallpapers, when user swipes across home screens.
282282
*/
283-
public float offsetX = 0;
284-
public float offsetY = 0;
283+
public float displayOffset = 0;
284+
// public float offsetY = 0;
285285

286286
/**
287287
* Indicates if the wallpaper is in preview mode.

0 commit comments

Comments
 (0)