Skip to content

Instantly share code, notes, and snippets.

@jksk
jksk / css-touch-delay.md
Created April 22, 2013 08:38 — forked from Integralist/css-touch-delay.md
CSS touch delay3

Although it's possible to extend the above optimisation approach to checknavigator.maxTouchPoints and to then hook up our listener to pointerup rather than click, there is a much simpler way: setting the touch-action CSS property of our element to none eliminates the delay.

/* suppress default touch action like double-tap zoom */
a, button {
    -ms-touch-action: none;
        touch-action: none;
}
@jksk
jksk / fish.config
Created June 9, 2012 19:04 — forked from Pallinder/fish.config
Add current git branch to fish
set fish_git_dirty_color red
function parse_git_dirty
git diff --quiet HEAD ^&-
if test $status = 1
echo (set_color $fish_git_dirty_color)"Δ"(set_color normal)
end
end
function parse_git_branch
# git branch outputs lines, the current branch is prefixed with a *
set -l branch (git rev-parse --abbrev-ref HEAD)