News for hackers. Stuff that matters.
Re:Why App Speed Matters: Revenue by newzzy on Wednesday June 28, 2017 @03:25PM (#14657405)
your site (not blog) has a bad scrolling experience in Firefox on Android
Re:Why App Speed Matters: Revenue by hkfoster on Wednesday June 28, 2017 @03:32PM (#14657464)
I'd argue every site is a bad experience in Firefox on Android.
Re:Why App Speed Matters: Revenue by mrkurt on Wednesday June 28, 2017 @05:13PM (#14658476)
I dug into this a little bit and can't figure out why. We don't actually do anything with JS that would affect scrolling. If you feel like emailing me with more details I'll keep lookin'.
Re:Why App Speed Matters: Revenue by pharrington on Wednesday June 28, 2017 @06:08PM (#14658933)
edit: i'm illiterate

from articles/assets/js/index.js:

    $.fn.arctic_scroll = function (options) {

        var defaults = {
            elem: $(this),
            speed: 500
        },

        allOptions = $.extend(defaults, options);

        allOptions.elem.click(function (event) {
            event.preventDefault();
            var $this = $(this),
                $htmlBody = $('html, body'),
                offset = ($this.attr('data-offset')) ? $this.attr('data-offset') : false,
                position = ($this.attr('data-position')) ? $this.attr('data-position') : false,
                toMove;

            if (offset) {
                toMove = parseInt(offset);
                $htmlBody.stop(true, false).animate({scrollTop: ($(this.hash).offset().top + toMove) }, allOptions.speed);
            } else if (position) {
                toMove = parseInt(position);
                $htmlBody.stop(true, false).animate({scrollTop: toMove }, allOptions.speed);
            } else {
                $htmlBody.stop(true, false).animate({scrollTop: ($(this.hash).offset().top) }, allOptions.speed);
            }
        });

    };

  var $document = $(document);

    $document.ready(function () {
        ...
        $(".scroll-down").arctic_scroll();
        ...
    });
Re:Why App Speed Matters: Revenue by mrkurt on Wednesday June 28, 2017 @06:12PM (#14658966)
He said "not blog". :)
Re:Why App Speed Matters: Revenue by pharrington on Wednesday June 28, 2017 @07:02PM (#14659337)
oops