nagasurendra commited on
Commit
01b3ac8
·
verified ·
1 Parent(s): 1f065fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -141,7 +141,7 @@ modal_and_cart_js = """
141
  modal.style.top = `${event.touches ? event.touches[0].screenY : event.clientY}px`;
142
  } else {
143
  modal.style.width = '30%';
144
- modal.style.top = ${event.clientY}px; // Use mouse Y position for laptop
145
  }
146
  modal.style.left = '50%';
147
  modal.style.transform = 'translate(-50%, -50%)';
 
141
  modal.style.top = `${event.touches ? event.touches[0].screenY : event.clientY}px`;
142
  } else {
143
  modal.style.width = '30%';
144
+ modal.style.top = `${event.clientY}px`;// Use mouse Y position for laptop
145
  }
146
  modal.style.left = '50%';
147
  modal.style.transform = 'translate(-50%, -50%)';