pdf viewer : show draft comment marker
This commit is contained in:
parent
b3c921cd31
commit
8b9bd9e4ab
2 changed files with 14 additions and 12 deletions
|
|
@ -153,6 +153,7 @@ watch(isAddOpen, (newVal) => {
|
|||
watch(
|
||||
draftComment,
|
||||
(newVal) => {
|
||||
console.log(newVal.position);
|
||||
if (newVal.position) {
|
||||
emits("show-draft-bubble", newVal);
|
||||
} else {
|
||||
|
|
@ -248,8 +249,6 @@ function handleCommentPositionClick(event) {
|
|||
.getAttribute("aria-label");
|
||||
const pageIndex = pageLabel.charAt(pageLabel.length - 1);
|
||||
|
||||
draftComment.value.pageIndex = parseInt(pageIndex);
|
||||
|
||||
const viewRect = viewContainer.getBoundingClientRect();
|
||||
const pageRect = pageContainer.getBoundingClientRect();
|
||||
const pageScroll = viewRect.top - pageRect.top;
|
||||
|
|
@ -264,6 +263,7 @@ function handleCommentPositionClick(event) {
|
|||
draftComment.value.position = {
|
||||
x: relativeX,
|
||||
y: relativeY,
|
||||
pageIndex: parseInt(pageIndex),
|
||||
};
|
||||
isAddOpen.value = true;
|
||||
toggleCommentPositionMode(false);
|
||||
|
|
@ -394,6 +394,6 @@ function openComment(comment) {
|
|||
}
|
||||
.comment-marker.active,
|
||||
.comment-marker:focus {
|
||||
background-image: var(--icon-comment-focus)
|
||||
background-image: var(--icon-comment-focus);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue