Comparing version 0.0.66 to 0.0.67
@@ -196,3 +196,3 @@ /* globals v */ | ||
if( dt > 50 ) { | ||
if( dt > 100 ) { | ||
const next = | ||
@@ -218,10 +218,13 @@ loop({ | ||
v( | ||
'button' | ||
'div' | ||
+ v.css` | ||
bc #1043d8 | ||
border 0 | ||
w 4.3em | ||
h 4.3em | ||
w 3.5em | ||
h 3.5em | ||
br 0.8em | ||
transition 0.2s | ||
d grid | ||
jc center | ||
ac center | ||
` | ||
@@ -262,27 +265,12 @@ .$disabled(` | ||
const ff = () => | ||
button('https://attain.harth.io/examples/fast-forward.svg', { | ||
onmousedown(e){ | ||
try { | ||
const dom = e.target | ||
window.addEventListener('mouseup', lol) | ||
transitions( | ||
route.FF({ time: tapePlayer.value.time(), after: tapePlayer().tag }) | ||
) | ||
function lol(){ | ||
console.log('lol') | ||
transitions( | ||
route.Paused({ time: tapePlayer.value.time() }) | ||
) | ||
// window.removeEventListener('mouseup', lol) | ||
} | ||
} catch (e) { | ||
console.error(e) | ||
} | ||
}, | ||
onclick(){ | ||
console.log('up') | ||
onmousedown(){ | ||
transitions( | ||
route.FF({ time: tapePlayer.value.time(), after: tapePlayer().tag }) | ||
) | ||
} | ||
, onmouseup(){ | ||
transitions( | ||
route.Paused({ time: tapePlayer.value.time() }) | ||
@@ -352,3 +340,3 @@ ) | ||
const total = stream(5) | ||
const total = stream(30) | ||
@@ -355,0 +343,0 @@ const elapsed = |
{ | ||
"name": "attain", | ||
"version": "0.0.66", | ||
"version": "0.0.67", | ||
"description": "A library for modelling and accessing data.", | ||
@@ -5,0 +5,0 @@ "main": "dist/attain.min.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
529906
4301