Skip to content

Commit 95e400c

Browse files
committed
ios26 scroll fix
1 parent 8846f0c commit 95e400c

File tree

9 files changed

+66
-6
lines changed

9 files changed

+66
-6
lines changed

README.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Tested up to: 6.3
77
License: GPLv2 or later
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

10-
MILL3 WP utils, includes Gutenberg editor sidebar resizer.
10+
MILL3 WP Utils, includes a bunch of administration features, frontend securities and bug fixes for all MILL3 projects.
1111

1212
== Description ==
1313

@@ -31,6 +31,10 @@ click on "Create new translation" at the bottom/left of this window.
3131

3232
== Changelog ==
3333

34+
= 0.1.5 =
35+
36+
* iOS26 Scroll Fix : Fix an iOS 26 scroll bug that made content visible below Apple's island.
37+
3438
= 0.1.4.1 =
3539

3640
* Fix PHP 8.4 warnings
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.ios26-scroll-fix{display:none;}
2+
@supports(-webkit-touch-callout:none){
3+
.ios26-scroll-fix{position:sticky;top:0;z-index:100000;display:block;pointer-events:none;}
4+
.ios26-scroll-fix-overlay{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;backdrop-filter:blur(1px);}
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php // Silence is golden
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
namespace Mill3_Plugins\Utils\Components;
4+
use Mill3_Plugins\Utils\Components\Mill3_Wp_Utils_Component;
5+
6+
class iOS26ScrollFix extends Mill3_Wp_Utils_Component
7+
{
8+
protected function init(): void {
9+
if( is_admin() ) return;
10+
11+
$this->loader->add_action('wp_enqueue_scripts', $this, 'enqueue_styles', 200);
12+
$this->loader->add_action('wp_footer', $this, 'inject_element_to_footer');
13+
}
14+
15+
// add css to frontend
16+
public function enqueue_styles() {
17+
wp_enqueue_style($this->plugin->get_name() . '-ios26-scroll-fix', plugin_dir_url(__FILE__) . 'css/mill3-wp-utils-ios26-scroll-fix.css', array(), $this->version(), 'all');
18+
}
19+
20+
// inject element to DOM
21+
public function inject_element_to_footer() {
22+
echo '<div class="ios26-scroll-fix" aria-hidden="true" inert><div class="ios26-scroll-fix-overlay"></div></div>';
23+
}
24+
25+
26+
27+
// getters
28+
public static function id() : string { return 'ios26-scroll-fix'; }
29+
public function version() : string { return '0.0.1'; }
30+
public function title() : string { return __('iOS 26 Scroll Fix', 'mill3-wp-utils'); }
31+
public function description() : ?string { return __('Fix iOS 26 scroll bug that made content visible below Apple\'s island.', 'mill3-wp-utils'); }
32+
}

includes/class-mill3-wp-utils.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Mill3_Wp_Utils
3636
'\Mill3_Plugins\Utils\Components\Avatar',
3737
'\Mill3_Plugins\Utils\Components\Block_Visibility',
3838
'\Mill3_Plugins\Utils\Components\Gutenberg_Sidebar',
39+
'\Mill3_Plugins\Utils\Components\iOS26ScrollFix',
3940
'\Mill3_Plugins\Utils\Components\Live_Site_Viewer',
4041
'\Mill3_Plugins\Utils\Components\Module_Finder',
4142
'\Mill3_Plugins\Utils\Components\Security_headers',

languages/mill3-wp-utils-fr_CA.mo

236 Bytes
Binary file not shown.

languages/mill3-wp-utils-fr_CA.po

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ msgstr ""
55
"Project-Id-Version: MILL3 WP Utils 0.0.4\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mill3-wp-utils-"
77
"plugin\n"
8-
"POT-Creation-Date: 2025-09-22T18:56:02+00:00\n"
9-
"PO-Revision-Date: 2025-09-22 15:01-0400\n"
8+
"POT-Creation-Date: 2025-11-06T16:32:50+00:00\n"
9+
"PO-Revision-Date: 2025-11-06 11:35-0500\n"
1010
"Last-Translator: \n"
1111
"Language-Team: \n"
1212
"Language: fr_CA\n"
@@ -234,6 +234,14 @@ msgstr ""
234234
"petite ? Ce module vous permet d’élargir la barre latérale de l’éditeur de "
235235
"contenu riche à la taille de vos rêves."
236236

237+
#: components/ios26-scroll-fix/ios26-scroll-fix.php:30
238+
msgid "iOS 26 Scroll Fix"
239+
msgstr "iOS 26 correctif de défilement"
240+
241+
#: components/ios26-scroll-fix/ios26-scroll-fix.php:31
242+
msgid "Fix iOS 26 scroll bug that made content visible below Apple's island."
243+
msgstr "Corrige un problème de contenu visible sous le “island” Apple."
244+
237245
#: components/live-site-viewer/live-site-viewer.php:101
238246
msgid "Live Site Viewer"
239247
msgstr "Visualisateur de site web"

languages/mill3-wp-utils.pot

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2025-09-22T18:56:02+00:00\n"
12+
"POT-Creation-Date: 2025-11-06T16:32:50+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.9.0\n"
1515
"X-Domain: mill3-wp-utils\n"
@@ -211,6 +211,14 @@ msgstr ""
211211
msgid "Ever find that Rich Block Editor sidebar is too small? This module enable you to enlarge the Rich Block Editor sidebar to the size of your dreams."
212212
msgstr ""
213213

214+
#: components/ios26-scroll-fix/ios26-scroll-fix.php:30
215+
msgid "iOS 26 Scroll Fix"
216+
msgstr ""
217+
218+
#: components/ios26-scroll-fix/ios26-scroll-fix.php:31
219+
msgid "Fix iOS 26 scroll bug that made content visible below Apple's island."
220+
msgstr ""
221+
214222
#: components/live-site-viewer/live-site-viewer.php:101
215223
msgid "Live Site Viewer"
216224
msgstr ""

mill3-wp-utils.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: MILL3 WP Utils
44
* Plugin URI: https://github.com/Mill3/mill3-wp-utils-plugin
55
* Description: MILL3 WP Utils
6-
* Version: 0.1.4.1
6+
* Version: 0.1.5
77
* Author: MILL3 Studio
88
* Author URI: https://mill3.studio/
99
* Tested up to: 6.6.6
@@ -26,7 +26,7 @@
2626
* Start at version 0.0.1 and use SemVer - https://semver.org
2727
* Rename this for your plugin and update it as you release new versions.
2828
*/
29-
define( 'MILL3_WP_UTILS_VERSION', '0.1.4.1' );
29+
define( 'MILL3_WP_UTILS_VERSION', '0.1.5' );
3030

3131

3232
/**
@@ -82,6 +82,7 @@
8282
require plugin_dir_path( __FILE__ ) . 'components/avatar/avatar.php';
8383
require plugin_dir_path( __FILE__ ) . 'components/block-visibility/block-visibility.php';
8484
require plugin_dir_path( __FILE__ ) . 'components/gutenberg-sidebar/gutenberg-sidebar.php';
85+
require plugin_dir_path( __FILE__ ) . 'components/ios26-scroll-fix/ios26-scroll-fix.php';
8586
require plugin_dir_path( __FILE__ ) . 'components/live-site-viewer/live-site-viewer.php';
8687
require plugin_dir_path( __FILE__ ) . 'components/module-finder/module-finder.php';
8788
require plugin_dir_path( __FILE__ ) . 'components/robots-indexing/robots-indexing.php';

0 commit comments

Comments
 (0)