本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
chemicalcrux
/
macrovision
關注
1
收藏
0
複製
0
程式碼
問題
5
合併請求
0
版本發佈
10
Wiki
活動
瀏覽代碼
Smooth movement induced by scrolling
tags/v0.1.0
Fen Dweller
5 年之前
父節點
0c55380f38
當前提交
94b8398105
共有
2 個檔案被更改
,包括
7 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
macrovision.css
+2
-0
macrovision.js
+ 5
- 1
macrovision.css
查看文件
@@ -29,7 +29,7 @@ body {
-moz-user-drag: none;
-o-user-drag: none;
pointer-events: none;
transition: height 0.2s cubic-bezier(.1,.41,.18,.99), max-height 0.2s cubic-bezier(.1,.41,.18,.99);
transition:
left 0.2s cubic-bezier(.1,.41,.18,.99), top 0.2s cubic-bezier(.1,.41,.18,.99),
height 0.2s cubic-bezier(.1,.41,.18,.99), max-height 0.2s cubic-bezier(.1,.41,.18,.99);
}
.entity-image {
@@ -409,4 +409,8 @@ a {
left: 50%;
transform: translate(-50%, 0%);
font-size: 20px;
}
.no-transition {
transition: 0s !important;
}
+ 2
- 0
macrovision.js
查看文件
@@ -337,6 +337,7 @@ function clickDown(target, x, y) {
dragOffsetX = x - rect.left + entX;
dragOffsetY = y - rect.top + entY;
clickTimeout = setTimeout(() => { dragging = true }, 200)
target.classList.add("no-transition");
}
// could we make this actually detect the menu area?
@@ -359,6 +360,7 @@ function clickUp(e) {
} else {
select(clicked);
}
clicked.classList.remove("no-transition");
clicked = null;
}
Write
Preview
Loading…
取消
儲存