public void ScrollToPost(ThreadPostSource post) { if (post == null) { return; } string smooth; bool smoothScroll = App.Model.IsSmoothScrollEnabled; if (smoothScroll) { smooth = "true"; this._browser.InvokeScript("scrollTo", "post_" + post.Data.PageIndex, smooth); } else { smooth = "false"; this._browser.InvokeScript("scrollTo", "post_" + post.Data.PageIndex, smooth); } }
public void ScrollToPost(ThreadPostSource post) { if (post == null) return; string smooth; bool smoothScroll = App.Model.IsSmoothScrollEnabled; if (smoothScroll) { smooth = "true"; this._browser.InvokeScript("scrollTo", "post_" + post.Data.PageIndex, smooth); } else { smooth = "false"; this._browser.InvokeScript("scrollTo", "post_" + post.Data.PageIndex, smooth); } }