Menu App Scroll to To Problem

On your sample iPad Menu App, dhtmlx.com/touch/samples/apps/menu/
when I click to add on a menu item scrolling down at bottom of list, the right pane auto scrolls to top. This prevents user to add multiple items of the same or another and user must scroll down to manually again. It is happening on ipad and desktop both. Do you have a solution for this ?

I found that the below part of code, this.refresh and this.select causes the problem. These methods scrolls the page suddenly to the top.

[code]if (this.isSelected(id))

				this.refresh(id);

			else

				this.select(id, true);

			return true

[/code]

Hi,

Please try to use the following method to solve the issue:

var scroll = this.scrollState();

if (this.isSelected(id))
this.refresh(id);
else
this.select([id],true);

this.scrollTo(scroll.x, scroll.y);

Thank you Alexandra, it works ! :smiley: