diff --git a/src/components/DetailElement.jsx b/src/components/DetailElement.jsx
index 9a5fe52..69379a7 100644
--- a/src/components/DetailElement.jsx
+++ b/src/components/DetailElement.jsx
@@ -123,11 +123,23 @@ const touchEvent = function (event) {
}
};
-function DetailElement({ sonificationType, children }) {
+function DetailElement({ sonificationType, sonificationEnabled, children }) {
type = sonificationType;
return (
-
{}} onTouchStart={touchEvent} onTouchMove={touchEvent}>
+
{}}
+ onTouchStart={(event) => {
+ if (sonificationEnabled) {
+ touchEvent(event);
+ }
+ }}
+ onTouchMove={(event) => {
+ if (sonificationEnabled) {
+ touchEvent(event);
+ }
+ }}
+ >
{children}
);
diff --git a/src/pages/study_site_1/StartPage1.jsx b/src/pages/study_site_1/StartPage1.jsx
index 895b588..5f0b2d4 100644
--- a/src/pages/study_site_1/StartPage1.jsx
+++ b/src/pages/study_site_1/StartPage1.jsx
@@ -28,7 +28,7 @@ function StartPage1({ redirectLoc }) {
Frequently Asked Questions
-
+
You can change your flight bookings providing the fare conditions of
diff --git a/src/pages/study_site_4/StartPage4.jsx b/src/pages/study_site_4/StartPage4.jsx
index 9a85a21..e77761c 100644
--- a/src/pages/study_site_4/StartPage4.jsx
+++ b/src/pages/study_site_4/StartPage4.jsx
@@ -11,6 +11,7 @@ import DetailElement from "../../components/DetailElement";
function StartPage4({ redirectLoc }) {
const [modalVisible, setModalVisible] = useState(false);
+ const [sonificationEnabled, setSonificationEnabled] = useState(true);
var saveMouseLog = function () {
pushToMouseLog(getHeatmapData());
@@ -18,6 +19,7 @@ function StartPage4({ redirectLoc }) {
const closeModal = () => {
setModalVisible(false);
+ setSonificationEnabled(true);
};
const icelandicPhrasebook = (
@@ -85,7 +87,10 @@ function StartPage4({ redirectLoc }) {
bannerTranslationKey;
const collapseGroup = (
-
+
Iceland is divided into several regions, each with its own unique
@@ -140,6 +145,7 @@ function StartPage4({ redirectLoc }) {