Skip to content

Commit 6219fe5

Browse files
committed
Update editor.ts, cursor.ts
1 parent 26ef48e commit 6219fe5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cursor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace kojac {
44

55
const SEARCH_INCR = 8;
66
const SEARCH_MAX = 160;
7-
const SEARCH_SLOPE = 1.9;
7+
const SEARCH_SLOPE = 1.1;
88

99
export class Cursor extends Component implements IPlaceable {
1010
private xfrm_: Affine;
@@ -45,7 +45,7 @@ namespace kojac {
4545
this.dest.copyFrom(pos);
4646
this.anim.clearFrames();
4747
this.anim.addFrame(new EaseFrame({
48-
duration: 0.1,
48+
duration: 0.05,
4949
//curve: curves.easeOut(curves.easing.sq2),
5050
curve: curves.linear(),
5151
startValue: this.xfrm.localPos,

editor.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace kojac {
2424
}
2525

2626
const TOOLBAR_HEIGHT = 17;
27+
const TOOLBAR_COLOR = 11;
2728

2829
export class Editor extends Scene {
2930
private quadtree: QuadTree;
@@ -124,7 +125,7 @@ namespace kojac {
124125
new Vec2());
125126
this.scrollanim.clearFrames();
126127
this.scrollanim.addFrame(new EaseFrame({
127-
duration: 0.1,
128+
duration: 0.05,
128129
//curve: curves.easeOut(curves.easing.sq2),
129130
curve: curves.linear(),
130131
startValue: this.scrollroot.xfrm.localPos,
@@ -299,7 +300,7 @@ namespace kojac {
299300
if (this.pageEditor) {
300301
this.pageEditor.draw();
301302
}
302-
Screen.fillRect(Screen.LEFT_EDGE, Screen.TOP_EDGE, Screen.WIDTH, TOOLBAR_HEIGHT, 11)
303+
Screen.fillRect(Screen.LEFT_EDGE, Screen.TOP_EDGE, Screen.WIDTH, TOOLBAR_HEIGHT, TOOLBAR_COLOR)
303304
this.pageBtn.draw();
304305
this.prevPageBtn.draw();
305306
this.nextPageBtn.draw();

0 commit comments

Comments
 (0)