Add a finger trail to the device screen.

This commit is contained in:
Simo Kinnunen
2014-02-06 23:14:35 +09:00
parent d17e86bc57
commit f2d88329cd
3 changed files with 22 additions and 2 deletions

View File

@@ -14,6 +14,20 @@ style.
left: 0;
pointer-events: none; /* MUST HAVE */
}
device-screen .finger {
position: absolute;
border-radius: 50%;
border: 1mm solid lime;
width: 4mm;
height: 4mm;
top: -3mm;
left: -3mm;
pointer-events: none;
display: none;
}
device-screen.fingering .finger {
display: block;
}
div(ng-controller='DeviceScreenCtrl')
device-screen(style='width: 400px; height: 600px; background: gray')

View File

@@ -1,2 +1,3 @@
canvas(ng-show='ready')
div(ng-if='displayError') Screen error
span.finger