Fix QR dragging without fixed header

This commit is contained in:
Jordan Bates 2013-05-05 22:37:49 -07:00
parent 9845a4c4dc
commit dd302fade4
5 changed files with 7 additions and 4 deletions

View File

@ -5,6 +5,9 @@ detharonil
MayhemYDG:
- Fix whitespaces not being preserved in code tags in /g/.
seaweedchan:
- Fix QR not being able to drag to the top with fixed header disabled
zixaphir:
- Fix custom CSS

View File

@ -2454,7 +2454,7 @@
screenWidth: screenWidth,
isTouching: isTouching
};
_ref = Conf['Header auto-hide'] ? [0, 0] : Conf['Bottom Header'] ? [0, Header.bar.getBoundingClientRect().height] : [Header.bar.getBoundingClientRect().height, 0], o.topBorder = _ref[0], o.bottomBorder = _ref[1];
_ref = Conf['Header auto-hide'] || !Conf['Fixed Header'] ? [0, 0] : Conf['Bottom Header'] ? [0, Header.bar.getBoundingClientRect().height] : [Header.bar.getBoundingClientRect().height, 0], o.topBorder = _ref[0], o.bottomBorder = _ref[1];
if (isTouching) {
o.identifier = e.identifier;
o.move = touchmove.bind(o);

View File

@ -2450,7 +2450,7 @@
screenWidth: screenWidth,
isTouching: isTouching
};
_ref = Conf['Header auto-hide'] ? [0, 0] : Conf['Bottom Header'] ? [0, Header.bar.getBoundingClientRect().height] : [Header.bar.getBoundingClientRect().height, 0], o.topBorder = _ref[0], o.bottomBorder = _ref[1];
_ref = Conf['Header auto-hide'] || !Conf['Fixed Header'] ? [0, 0] : Conf['Bottom Header'] ? [0, Header.bar.getBoundingClientRect().height] : [Header.bar.getBoundingClientRect().height, 0], o.topBorder = _ref[0], o.bottomBorder = _ref[1];
if (isTouching) {
o.identifier = e.identifier;
o.move = touchmove.bind(o);

View File

@ -2453,7 +2453,7 @@
screenWidth: screenWidth,
isTouching: isTouching
};
_ref = Conf['Header auto-hide'] ? [0, 0] : Conf['Bottom Header'] ? [0, Header.bar.getBoundingClientRect().height] : [Header.bar.getBoundingClientRect().height, 0], o.topBorder = _ref[0], o.bottomBorder = _ref[1];
_ref = Conf['Header auto-hide'] || !Conf['Fixed Header'] ? [0, 0] : Conf['Bottom Header'] ? [0, Header.bar.getBoundingClientRect().height] : [Header.bar.getBoundingClientRect().height, 0], o.topBorder = _ref[0], o.bottomBorder = _ref[1];
if (isTouching) {
o.identifier = e.identifier;
o.move = touchmove.bind(o);

View File

@ -226,7 +226,7 @@ UI = do ->
isTouching: isTouching
}
[o.topBorder, o.bottomBorder] = if Conf['Header auto-hide']
[o.topBorder, o.bottomBorder] = if Conf['Header auto-hide'] or not Conf['Fixed Header']
[0, 0]
else if Conf['Bottom Header']
[0, Header.bar.getBoundingClientRect().height]