Compare commits
No commits in common. "56f1e2f9a489add95887f197f2d4f94f13808983" and "9533513e5fcf8bd304cfd56e9e8fb6c009abe7c0" have entirely different histories.
56f1e2f9a4
...
9533513e5f
14
chatapp.svg
14
chatapp.svg
|
@ -130,7 +130,6 @@ function TextChatMessage(message_text, is_myself) {
|
|||
'fill': text_color,
|
||||
'width': '5%'
|
||||
});
|
||||
enable_scrolling(tspan)
|
||||
|
||||
if(is_hyperlink(line)) {
|
||||
tspan.appendChild(create_link_node(line));
|
||||
|
@ -247,7 +246,6 @@ function create_bubble(inner_element, color) {
|
|||
'rx': 8,
|
||||
'fill': color,
|
||||
});
|
||||
enable_scrolling(bubble);
|
||||
return bubble;
|
||||
}
|
||||
|
||||
|
@ -419,16 +417,6 @@ async function scroll_down() {
|
|||
current_dialog.scroll_by(-line_height);
|
||||
}
|
||||
|
||||
const on_wheel = (e) => { e.deltaY < 0 ? scroll_up() : scroll_down() }
|
||||
|
||||
const enable_scrolling = (elem) => elem.addEventListener('wheel', on_wheel);
|
||||
|
||||
// enable scrolling
|
||||
document.addEventListener(
|
||||
"DOMContentLoaded",
|
||||
() => document.getElementById("message_box").addEventListener('wheel', on_wheel)
|
||||
)
|
||||
|
||||
async function dialog_ven() {
|
||||
let d = new Dialog();
|
||||
current_dialog = d;
|
||||
|
@ -537,7 +525,7 @@ async function dialog_nabopige() {
|
|||
</g>
|
||||
|
||||
<!-- [right] messages view -->
|
||||
<rect id="message_box" x="300" y="50" width="300" height="450" fill="white" />
|
||||
<rect x="300" y="50" width="300" height="450" fill="white" />
|
||||
<g id="messages"></g>
|
||||
|
||||
<!-- [right] message status -->
|
||||
|
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Loading…
Reference in a new issue