Показаны сообщения с ярлыком hooking. Показать все сообщения
Показаны сообщения с ярлыком hooking. Показать все сообщения
понедельник, 14 марта 2016 г.
понедельник, 15 февраля 2016 г.
пятница, 15 января 2016 г.
Заперт на overscroll в iOS
$(document).on('touchmove',function(e){
e.preventDefault();
});
//uses body because jquery on events are called off of the element they are
//added to, so bubbling would not work if we used document instead.
$('body').on('touchstart','.scrollable',function(e) {
if (e.currentTarget.scrollTop === 0) {
e.currentTarget.scrollTop = 1;
} else if (e.currentTarget.scrollHeight === e.currentTarget.scrollTop + e.currentTarget.offsetHeight) {
e.currentTarget.scrollTop -= 1;
}
});
//prevents preventDefault from being called on document if it sees a scrollable div
$('body').on('touchmove','.scrollable',function(e) {
e.stopPropagation();
});
Подписаться на:
Сообщения
(
Atom
)