mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
disable smooth scroll
This commit is contained in:
parent
1d51f58447
commit
332a65a9cc
@ -216,16 +216,15 @@ async function loadNoteDetail(noteId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function showChildrenOverview() {
|
async function showChildrenOverview() {
|
||||||
|
const note = getCurrentNote();
|
||||||
const attributes = await attributePromise;
|
const attributes = await attributePromise;
|
||||||
const hideChildrenOverview = attributes.some(attr => attr.type === 'label' && attr.name === 'hideChildrenOverview');
|
const hideChildrenOverview = attributes.some(attr => attr.type === 'label' && attr.name === 'hideChildrenOverview') || note.type === 'relation-map';
|
||||||
|
|
||||||
if (hideChildrenOverview) {
|
if (hideChildrenOverview) {
|
||||||
$childrenOverview.hide();
|
$childrenOverview.hide();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const note = getCurrentNote();
|
|
||||||
|
|
||||||
$childrenOverview.empty();
|
$childrenOverview.empty();
|
||||||
|
|
||||||
const notePath = treeService.getCurrentNotePath();
|
const notePath = treeService.getCurrentNotePath();
|
||||||
|
@ -243,7 +243,8 @@ async function show() {
|
|||||||
|
|
||||||
const pz = panzoom($relationMapCanvas[0], {
|
const pz = panzoom($relationMapCanvas[0], {
|
||||||
maxZoom: 2,
|
maxZoom: 2,
|
||||||
minZoom: 0.1
|
minZoom: 0.1,
|
||||||
|
smoothScroll: false
|
||||||
});
|
});
|
||||||
|
|
||||||
if (mapData.transform) {
|
if (mapData.transform) {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#note-detail-relation-map {
|
#note-detail-relation-map {
|
||||||
height: 500px;
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#relation-map-canvas {
|
#relation-map-canvas {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user