Example #1
0
        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);
            }
        }
Example #2
0
        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);
            }
        }