mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
opt some
This commit is contained in:
parent
ac6f14877c
commit
1a00d79809
2
frame.js
2
frame.js
@ -682,7 +682,7 @@ Volcanos(chat.ONMOTION, {_init: function(can, target) {
|
||||
window._scroll = _window.onmousemove
|
||||
}, _window.onmouseup = function(event) { target = null, begin = {}, delete(window._scroll) }
|
||||
_window.onmousemove = function(event) {
|
||||
if (window._scroll) { can.onkeymap.prevent(event)
|
||||
if (window._scroll && target) { can.onkeymap.prevent(event)
|
||||
switch (action) {
|
||||
case "left":
|
||||
can.page.style(can, target, html.LEFT, can.base.Min(begin.left + event.x - begin.x, 0, window.innerWidth-target.offsetWidth))
|
||||
|
2
proto.js
2
proto.js
@ -94,6 +94,8 @@ var web = {CHAT: "chat",
|
||||
CODE_XTERM: "web.code.xterm", CODE_VIMER: "web.code.vimer", CODE_INNER: "web.code.inner",
|
||||
WIKI_WORD: "web.wiki.word", WIKI_DRAW: "web.wiki.draw", WIKI_FEEL: "web.wiki.feel",
|
||||
TEAM_PLAN: "web.team.plan",
|
||||
UPDATE: "update",
|
||||
HIDDEN: "hidden",
|
||||
}
|
||||
var aaa = {
|
||||
LOGIN: "login", LOGOUT: "logout", INVITE: "invite", TOKEN: "token",
|
||||
|
Loading…
x
Reference in New Issue
Block a user