catchup-library-web 1.21.3 → 1.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5393,7 +5393,7 @@ var GroupingActivityMaterialContent = ({
5393
5393
  if (dropZoneElement) {
5394
5394
  dropZoneElement.scrollIntoView({
5395
5395
  behavior: "smooth",
5396
- block: "center"
5396
+ block: "end"
5397
5397
  });
5398
5398
  }
5399
5399
  }
@@ -5807,7 +5807,7 @@ var MatchingActivityMaterialContent = ({
5807
5807
  if (dropZoneElement) {
5808
5808
  dropZoneElement.scrollIntoView({
5809
5809
  behavior: "smooth",
5810
- block: "center"
5810
+ block: "end"
5811
5811
  });
5812
5812
  }
5813
5813
  }
package/dist/index.mjs CHANGED
@@ -5177,7 +5177,7 @@ var GroupingActivityMaterialContent = ({
5177
5177
  if (dropZoneElement) {
5178
5178
  dropZoneElement.scrollIntoView({
5179
5179
  behavior: "smooth",
5180
- block: "center"
5180
+ block: "end"
5181
5181
  });
5182
5182
  }
5183
5183
  }
@@ -5591,7 +5591,7 @@ var MatchingActivityMaterialContent = ({
5591
5591
  if (dropZoneElement) {
5592
5592
  dropZoneElement.scrollIntoView({
5593
5593
  behavior: "smooth",
5594
- block: "center"
5594
+ block: "end"
5595
5595
  });
5596
5596
  }
5597
5597
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.21.03",
3
+ "version": "1.21.04",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@ const GroupingActivityMaterialContent = ({
71
71
  if (dropZoneElement) {
72
72
  dropZoneElement.scrollIntoView({
73
73
  behavior: "smooth",
74
- block: "center",
74
+ block: "end",
75
75
  });
76
76
  }
77
77
  }
@@ -62,14 +62,13 @@ const MatchingActivityMaterialContent = ({
62
62
  ).answerMap = materialMap;
63
63
  }, [showCorrectAnswer, answer, materialMap]);
64
64
 
65
- // Auto-scroll to center the drop zone when hovering
66
65
  useEffect(() => {
67
66
  if (dropTargetKey && dropZoneRefs.current[dropTargetKey]) {
68
67
  const dropZoneElement = dropZoneRefs.current[dropTargetKey];
69
68
  if (dropZoneElement) {
70
69
  dropZoneElement.scrollIntoView({
71
70
  behavior: "smooth",
72
- block: "center",
71
+ block: "end",
73
72
  });
74
73
  }
75
74
  }