[Solved] Getting current scrollx and scrolly

For developers using the Construct 2 Javascript SDK

Post » Fri Feb 12, 2016 12:04 am

Looking at the SDK manual I can see that I can scroll to a coordinate on the layout using:

layout.scrollToX(x);
layout.scrollToY(y);

However, the manual doesn't mention how to get the current scroll coordinates. I believe this is possible, why shouldn't it be?

EDIT: By doing a quick lookup one can easily find that there are parameters to layout for scrollX and scrollY. One would think this should be documented under the SDK part of the manual?
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests