">mixi Developer Center (mDC)

mixi Apps

mixi Apps (English) » Technical Specification (new method) » PC » Scroll position adjustment

Scroll position adjustment

Use mixi.window.scrollTo() function to adjust the scroll position out of iframe from the app.

Scroll the window vertically to a position along the Y-axis relative to the top of the application's drawing area.

mixi.window.scrollTo(y);

Specify parameters as follows.

Parameter name Value
y The distance to scroll from the top of the application's drawing area. (px)
If the value is omitted or invalid, the window will be scrolled to the top of the application's drawing area.

You need to finish Preparing to use the JavaScript API because the function is provided by the JavaScript API.
If you switch from a long display window to a shorter one, the contents might be partially cut off.If you call the scrollTo() function after changing the window size, the users will be able to see the window contents more easily.

TOP OF THIS PAGE