Remove the custom grab
/grabbing
cursor image files
According to the MDN compatibility data, see https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#browser_compatibility, all browsers that we now support should have these cursors available natively.
This commit is contained in:
parent
6776efe491
commit
ee2896dd1e
11
gulpfile.js
11
gulpfile.js
@ -63,7 +63,7 @@ const DIST_DIR = BUILD_DIR + "dist/";
|
|||||||
const TYPES_DIR = BUILD_DIR + "types/";
|
const TYPES_DIR = BUILD_DIR + "types/";
|
||||||
const TMP_DIR = BUILD_DIR + "tmp/";
|
const TMP_DIR = BUILD_DIR + "tmp/";
|
||||||
const TYPESTEST_DIR = BUILD_DIR + "typestest/";
|
const TYPESTEST_DIR = BUILD_DIR + "typestest/";
|
||||||
const COMMON_WEB_FILES = ["web/images/*.{png,svg,gif,cur}", "web/debugger.js"];
|
const COMMON_WEB_FILES = ["web/images/*.{png,svg,gif}", "web/debugger.js"];
|
||||||
const MOZCENTRAL_DIFF_FILE = "mozcentral.diff";
|
const MOZCENTRAL_DIFF_FILE = "mozcentral.diff";
|
||||||
|
|
||||||
const REPO = "git@github.com:mozilla/pdf.js.git";
|
const REPO = "git@github.com:mozilla/pdf.js.git";
|
||||||
@ -1215,13 +1215,6 @@ gulp.task(
|
|||||||
const version = versionJSON.version,
|
const version = versionJSON.version,
|
||||||
commit = versionJSON.commit;
|
commit = versionJSON.commit;
|
||||||
|
|
||||||
// Ignore the fallback cursor images, since they're unnecessary in
|
|
||||||
// Firefox.
|
|
||||||
const MOZCENTRAL_COMMON_WEB_FILES = [
|
|
||||||
...COMMON_WEB_FILES,
|
|
||||||
"!web/images/*.cur",
|
|
||||||
];
|
|
||||||
|
|
||||||
return merge([
|
return merge([
|
||||||
createMainBundle(defines).pipe(
|
createMainBundle(defines).pipe(
|
||||||
gulp.dest(MOZCENTRAL_CONTENT_DIR + "build")
|
gulp.dest(MOZCENTRAL_CONTENT_DIR + "build")
|
||||||
@ -1239,7 +1232,7 @@ gulp.task(
|
|||||||
gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")
|
gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")
|
||||||
),
|
),
|
||||||
gulp
|
gulp
|
||||||
.src(MOZCENTRAL_COMMON_WEB_FILES, { base: "web/" })
|
.src(COMMON_WEB_FILES, { base: "web/" })
|
||||||
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
|
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
|
||||||
createCMapBundle().pipe(
|
createCMapBundle().pipe(
|
||||||
gulp.dest(MOZCENTRAL_CONTENT_DIR + "web/cmaps")
|
gulp.dest(MOZCENTRAL_CONTENT_DIR + "web/cmaps")
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 326 B |
Binary file not shown.
Before Width: | Height: | Size: 326 B |
@ -1699,7 +1699,6 @@ html[dir="rtl"] .treeItemToggler::before {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.grab-to-pan-grab {
|
.grab-to-pan-grab {
|
||||||
cursor: url("images/grab.cur"), move !important;
|
|
||||||
cursor: grab !important;
|
cursor: grab !important;
|
||||||
}
|
}
|
||||||
.grab-to-pan-grab
|
.grab-to-pan-grab
|
||||||
@ -1708,7 +1707,6 @@ html[dir="rtl"] .treeItemToggler::before {
|
|||||||
}
|
}
|
||||||
.grab-to-pan-grab:active,
|
.grab-to-pan-grab:active,
|
||||||
.grab-to-pan-grabbing {
|
.grab-to-pan-grabbing {
|
||||||
cursor: url("images/grabbing.cur"), move !important;
|
|
||||||
cursor: grabbing !important;
|
cursor: grabbing !important;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: rgba(0, 0, 0, 0);
|
background: rgba(0, 0, 0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user