навешивание слушателей тач на график
This commit is contained in:
parent
69c975e1f4
commit
25c18d7d84
@ -135,6 +135,11 @@ export const usePopper = ({
|
||||
setModalQuestionParentContentId(item.id());
|
||||
setOpenedModalQuestions(true);
|
||||
});
|
||||
layoutElement.addEventListener("ontouchend", () => {
|
||||
//Узнаём грани, идущие от этой ноды
|
||||
setModalQuestionParentContentId(item.id());
|
||||
setOpenedModalQuestions(true);
|
||||
});
|
||||
layoutsContainer.current?.appendChild(layoutElement);
|
||||
|
||||
return layoutElement;
|
||||
@ -162,6 +167,9 @@ export const usePopper = ({
|
||||
plusElement.addEventListener("mouseup", () => {
|
||||
setStartCreate(node.id());
|
||||
});
|
||||
plusElement.addEventListener("ontouchend", () => {
|
||||
setStartCreate(node.id());
|
||||
});
|
||||
|
||||
plusesContainer.current?.appendChild(plusElement);
|
||||
|
||||
@ -191,6 +199,9 @@ export const usePopper = ({
|
||||
crossElement.addEventListener("mouseup", () => {
|
||||
setStartRemove(node.id());
|
||||
});
|
||||
crossElement.addEventListener("ontouchend", () => {
|
||||
setStartRemove(node.id());
|
||||
});
|
||||
|
||||
return crossElement;
|
||||
},
|
||||
@ -225,6 +236,9 @@ export const usePopper = ({
|
||||
gearElement.addEventListener("mouseup", () => {
|
||||
updateOpenedModalSettingsId(item.id());
|
||||
});
|
||||
gearElement.addEventListener("ontouchend", () => {
|
||||
updateOpenedModalSettingsId(item.id());
|
||||
});
|
||||
|
||||
console.log("собираюсь анализировать папашу");
|
||||
console.log("Тип папаши ", parentQuestion.type);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user